public void back() { Scrabble.Lexicon.Move tmp = historyM.Pop(); futureM.Push(tmp); foreach (Scrabble.Lexicon.MovedStone m in tmp.PutedStones) { desk.Desk[m.i, m.j] = '_'; } }
public void newGame() { this.window.Hide(); this.round = 1; this.desk = new Scrabble.Lexicon.PlayDesk(this); foreach (Scrabble.Player.Player p in this.players) { p.Restart(); Scrabble.Game.StonesBag.CompleteRack(p.Rack); } OnTurn = 0; this.bestMove = new Scrabble.Lexicon.Move(""); this.window.Update(); this.window.ShowAll(); }
public void newGame() { this.window.Hide(); this.round = 1; this.desk = new Scrabble.Lexicon.PlayDesk(this); foreach( Scrabble.Player.Player p in this.players ) { p.Restart(); Scrabble.Game.StonesBag.CompleteRack( p.Rack ); } OnTurn = 0; this.bestMove = new Scrabble.Lexicon.Move(""); this.window.Update(); this.window.ShowAll(); }