fork download
  1. class Tictactoe
  2. def initialize(Player1, Player2)
  3. @player1 = Player1
  4. @player2 = Player2
  5. end
  6.  
  7. def mark_position
  8. end
  9.  
  10. def show_board
  11. end
  12.  
  13. def winning_positions
  14. end
  15. end
Runtime error #stdin #stdout #stderr 0.05s 9656KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.rb:2: formal argument cannot be a constant
	def initialize(Player1, Player2)
	                      ^
prog.rb:2: formal argument cannot be a constant
	def initialize(Player1, Player2)
	                               ^