So now i want to create another class with some better values that i later want to test aswell.
This is how far I've gotten, quesiton: Should i use get/set instead of "this.Rank = rank" etc?
class UpdatedChess
{
class Player
{
public string Name...
@Skydiver Yeah... its weird because we were taught to begin with tests first but... this assignment isn't following that lol.
Thanks.... now my problem is that my program doesn't want to run the tests... nice.
Also i did as you said before and deleted the "int = k" on the "HighestScore" method...
Well all i am going to do is testing it in the end. And trying to implement what you wrote earlier is almost more difficult to put into my code than LinQ is.
All i need to do right now is to check so that i can try stuff in my test class. At least be able to check other methods to see if they...
I have added an ex for it to check if it works or not.
And i've read your pseudo code and i understand it.
My main problem now is to try to test all of this in my test class.
How should i proceed? My test class is at the end of the code!
using Microsoft.VisualStudio.TestTools.UnitTesting...
Well now it should return the highest in both cases. And i return 0 if both are less than 1.
public int HighestScore(int k)
{
var item = NP.Max(x => x.Score);
var item2 = GM.Max(y => y.Score);
if(item > item2)...
Would this be good enough to compare which has the highest score?
I am not sure how to say which specific player that had the highest score tho.
public int HighestScore(int k)
{
var item = NP.Max(x => x.Score);
var item2 = GM.Max(y => y.Score)...
Hey.
I need some help when it comes to my code, its not meant to have a "main" method.
It is basically a chess program that takes values and compares them, checks players and how much they score.
This is what i need to do :
We organize a chess tournament in the local club. The members are...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.