public void PutStoneTest_IsNotEnd() { string borad = "___\n" + "_aa\n" + "__b\n"; Dictionary <char, StoneType> players; var game = new OthelloBoardFactoryFromString().Create(borad, 'b', out players); game.PutStone(new Position(2, 0), players['b']); game.Board.ShowDebug(); Assert.AreEqual(false, game.IsEnd); // [0,0]における }
public void PutStoneTest() { string borad = "____\n" + "_ab_\n" + "_ba_\n" + "____"; Dictionary <char, StoneType> players; var game = new OthelloBoardFactoryFromString().Create(borad, 'a', out players); game.Board.ShowDebug(); game.PutStone(new Position(0, 2), players['a']); game.Board.ShowDebug(); game.PutStone(new Position(0, 3), players['b']); game.Board.ShowDebug(); game.PutStone(new Position(3, 1), players['a']); game.Board.ShowDebug(); game.PutStone(new Position(0, 1), players['b']); game.Board.ShowDebug(); }