Sha256: 3a448da2568600d05b00d4c0d187c4f1820fe82c662e41a74bad6dda82402c7b
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
#!/usr/bin/env ruby require 'tic_tac_toe' # Take arguments from STDIN # Examples of how this program should be called from the terminal: # $ ./ttt.rb 3 "['x', 'o', 'v']" "['Agus', 'Budi', 'Chandra']" # $ ./ttt.rb 4 "['x', 'o', 'v', 'w', 'y']" # $ ./ttt.rb 6 "['x', 'o', 'v']" # $ ./ttt.rb 5 # $ ./ttt.rb size = ARGV.shift symbols = ARGV.shift players = ARGV.shift # Let's play it TicTacToe::Game.play size, symbols, players
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
t3_game-0.1.1 | exe/t3 |