You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
217 B
14 lines
217 B
15 years ago
|
#!/usr/bin/env ruby -w
|
||
|
|
||
|
require 'Qt'
|
||
|
require 'tictac'
|
||
|
|
||
|
a = Qt::Application.new(ARGV)
|
||
|
n = 3 # get board size n
|
||
|
|
||
|
ttt = TicTacToe.new(n)
|
||
|
a.setMainWidget(ttt)
|
||
|
ttt.setCaption('QtRuby Example - TicTac')
|
||
|
ttt.show()
|
||
|
a.exec()
|