Guest User

Untitled

a guest
Oct 28th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace RatingSimulator
  8. {
  9. class Player : IComparable<Player>
  10. {
  11. private int rating;
  12. private int trueRating;
  13.  
  14. public int Rating {
  15. get {
  16. return rating;
  17. }
  18.  
  19. set {
  20. rating = value;
  21. }
  22.  
  23. }
  24.  
  25. public int TrueRating
  26. {
  27. get
  28. {
  29. return trueRating;
  30. }
  31.  
  32. set
  33. {
  34. trueRating = value;
  35. }
  36.  
  37. }
  38.  
  39. public Player(int i)
  40. {
  41. Rating = 1200;
  42. TrueRating = i;
  43. }
  44.  
  45. public int CompareTo(Player other)
  46. {
  47. return this.Rating.CompareTo(other.Rating);
  48. }
  49.  
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment