What's new

SOS game

try 3x3 array first, then expand your array and adjust your logic to match its dimension

sos game is basically :
Code:
// pseudo 3x3
let table[row][col]

while(1)
 switch(players)
  case P1:
    read turnP1
  case P2:
    read turnP2
  default
    continue

  /*
   * YOUR LOGIC HERE
   */
 

Similar threads

Back
Top