Flowchart, Algorithm, & Pseudocode for Connect 4

Algorithm:

  1. Start
  2. Welcome Message with instructions of how to play
  3. User places first piece on the 6X7 grid
  4. Computer strategically places title
  5. User and computer alternate placing piece, until connect 4 is reached
  6. Message displayed whether user or computer won
  7. If board gets filled up, but no connect 4 is reached, then draw message appears
  8. Replay option appears, if yes then go back to Step 3
  9. End

(Have reset option on board)

 

One thought on “Flowchart, Algorithm, & Pseudocode for Connect 4

Leave a Reply

Your email address will not be published. Required fields are marked *