niekto s 8 prednaskou? nedostal som sa knej
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi» príspevky MenuQuote from: McGyver on 27.04.2010, 05:27:10
Hladam borca co by mi spravil zadanie na assebler komplet aj s dokumentackou: i8080, Znenie: Urcte pocet slov obsahujucich len nerovnake znaky.Pocet vypiste sestnastkovo. Ponukam 15e. ICQ: 428 326 236.
public void addPlayerTime(String name, int time, int movesCount)
{
PlayerScore player = new PlayerScore(name, time, movesCount);
playerScore.Add(player);
playerScore.Sort( timeComparer );
}
public class PlayerScoreTimeComparer : IComparer<PlayerScore>
{
#region IComparer<PlayerScore> Members
public int Compare(PlayerScore x, PlayerScore y)
{
return x.Time.CompareTo(y.Time);
}
#endregion
}
QuoteV konštruktore triedy PuzzleGame nastavte premennú puzzleGame.
V konštruktore triedy PuzzleGame inicializujte vlastnosť BestScore.
public PuzzleGame()
{
Field field = new Field(4, 4);
IUserInterface = new ConsoleUI(field);
IUserInterface.StartNewGame();
puzzleGame = new PuzzleGame();
BestScore = new BestScore();
}
public void addPlayerTime(String name, int time, int movesCount)
{
PlayerScore player = new PlayerScore(name, time, movesCount);
playerScore.Add(player);
playerScore.Sort( timeComparer );
}
public class PlayerScoreTimeComparer : IComparer
{
#region IComparer Members
public int Compare(object x, object y)
{
PlayerScore skore1 = (PlayerScore)x;
PlayerScore skore2 = (PlayerScore)y;
return Compare(skore1.Time,skore2.Time);
}
#endregion
}