diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 01:42:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 01:42:48 +0000 |
commit | 5a80f0c530f267a5eeab9d8053784c581a4efa9c (patch) | |
tree | 3ed6023ae4a279ca730ccea2c7c705a6adf0b815 /ext/tk/sample/tcltklib | |
parent | dfc9cb40057f74202206a90ea194fb5996b4eed6 (diff) |
use true and false [ci skip]
* ext/tk/lib/tk/texttag.rb, ext/tk/sample/tcltklib/sample2.rb,
ext/tk/sample/tkline.rb, ext/tk/sample/tktimer.rb: use true and
false instead of TRUE and FALSE.
* ext/win32ole/sample/ienavi.rb (stop_msg_loop): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tcltklib')
-rw-r--r-- | ext/tk/sample/tcltklib/sample2.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/tk/sample/tcltklib/sample2.rb b/ext/tk/sample/tcltklib/sample2.rb index 378c2d3eb7..eab7086ee4 100644 --- a/ext/tk/sample/tcltklib/sample2.rb +++ b/ext/tk/sample/tcltklib/sample2.rb @@ -381,7 +381,7 @@ class Othello $wm.e("iconname", $root, "Othello") @board.com_disk = WHITE - @game_over = FALSE + @game_over = false TclTk.mainloop end @@ -403,11 +403,11 @@ class Othello @board_view.clear @board.reset $wm.e("title", $root, "Othello") - @game_over = FALSE + @game_over = false end def com_turn - @in_com_turn = TRUE + @in_com_turn = true $update.e() sleep(0.5) begin @@ -421,22 +421,22 @@ class Othello else $wm.e("title", $root, "{Othello - You Loose!}") end - @game_over = TRUE + @game_over = true break elsif com_disk == 0 $wm.e("title", $root, "{Othello - You Win!}") - @game_over = TRUE + @game_over = true break elsif man_disk == 0 $wm.e("title", $root, "{Othello - You Loose!}") - @game_over = TRUE + @game_over = true break end row, col = @board.search(@board.com_disk) break if row == nil || col == nil @board.put_disk(row, col, @board.com_disk) end while @board.search(@board.man_disk) == [nil, nil] - @in_com_turn = FALSE + @in_com_turn = false end def show_point |