• R/O
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

オセロのゲーム


コミットメタ情報

リビジョン41 (tree)
日時2015-04-30 10:37:31
作者bellyoshi

ログメッセージ

変更サマリ

差分

--- VisualBasic/ReversiGame2/ReversiGame/frmMain.vb (revision 40)
+++ VisualBasic/ReversiGame2/ReversiGame/frmMain.vb (revision 41)
@@ -2,7 +2,6 @@
22 Private Property CellSize As Integer = 40
33
44 Private _nowBoard As New Board
5- Private _playerColor As Integer
65 Private _computerAIPlayer1 As computerPlayer
76 Private _computerAIPlayer2 As computerPlayer
87
@@ -95,10 +94,12 @@
9594 MessageBox.Show(String.Format("{0}対{1}で引き分け", blackCount, whiteCount))
9695 End If
9796 ElseIf Not _nowBoard.CanMoveAny() Then
98- If _nowBoard.CurrentColor = _playerColor Then
97+ Dim currentColor As DiscColor = _nowBoard.CurrentColor
98+ If _nowBoard.CurrentColor <> _computerAIPlayer1.MyColor AndAlso
99+ _nowBoard.CurrentColor <> _computerAIPlayer2.MyColor Then
99100 _nowBoard.Pass()
100101 End If
101- If _nowBoard.CurrentColor = DiscColor.WHITE Then
102+ If currentColor = DiscColor.WHITE Then
102103 MessageBox.Show("白は打てません。")
103104 Else
104105 MessageBox.Show("黒は打てません。")