Search results for query: *

  1. mrlowbot

    Beginner problems....

    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...
  2. mrlowbot

    Beginner problems....

    @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...
  3. mrlowbot

    Beginner problems....

    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...
  4. mrlowbot

    Beginner problems....

    @Skydiver Okay so what do i need to change then?
  5. mrlowbot

    Beginner problems....

    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...
  6. mrlowbot

    Beginner problems....

    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)...
  7. mrlowbot

    Beginner problems....

    @Skydiver So did i do it corret? :o
  8. mrlowbot

    Beginner problems....

    Well it says "A Maximum Score () method that returns the highest score any player has." So i need to return it.
  9. mrlowbot

    Beginner problems....

    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)...
  10. mrlowbot

    Beginner problems....

    @Skydiver Thank u :D
  11. mrlowbot

    Beginner problems....

    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...
Back
Top Bottom