All pastes #834539 Raw Edit

pvp_tictactoe

public ruby v1 · immutable
#834539 ·published 2007-12-28 08:24 UTC
rendered paste body
puts "Player-versues-player Tic-Tac-Toe"A = 1B = 2C = 3D = 4E = 5F = 6G = 7H = 8I = 9xoimput = 0ximput = 0oimput = 0#Initical printing, (L.1)puts A.to_s + "|" + B.to_s + "|" + C.to_sputs "-+-+-"puts D.to_s + "|" + E.to_s + "|" + F.to_sputs "-+-+-"puts G.to_s + "|" + H.to_s + "|" + I.to_sputs ""while (xoimput != 9)#Xs turn  puts "It is X's turn. Please enter the number of your desired slot."  if (ximput == 0 or ximput > 9)    puts "that is not a proper value, you lose your turn."  end  #more stuff goes here!#Os turn  puts "It is O's turn. Please enter the number of your desired slot."  if (ximput == 0 or ximput > 9)    puts "that is not a proper value, you lose your turn."  end  #More stuff goes here (should be ajusted vertion of the Xs turn stuff)end