summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/tictac/main.rb
blob: 024ae70ca9e0951650b7c8ea44cbc0f5d119c15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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()