Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace RatingSimulator
- {
- class Player : IComparable<Player>
- {
- private int rating;
- private int trueRating;
- public int Rating {
- get {
- return rating;
- }
- set {
- rating = value;
- }
- }
- public int TrueRating
- {
- get
- {
- return trueRating;
- }
- set
- {
- trueRating = value;
- }
- }
- public Player(int i)
- {
- Rating = 1200;
- TrueRating = i;
- }
- public int CompareTo(Player other)
- {
- return this.Rating.CompareTo(other.Rating);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment