This assignment is due at the beginning of the lecture on Friday, September 21st.
Everyone should complete this assignment with one partner. Submit one solution with both of your names on it.
The purpose of this assignment is to give you practice solving problems in Common Lisp.
Read the rules for Gomoku. Gomoku will also be the basis for the Program 4 game playing tournament.
Write a Common Lisp function named five-in-row-p (and any other auxiliary functions that are needed) in a file named go.l. The function should return t (true) if the last stone played results in a win and nil (false) otherwise.
The function five-in-row-p should make no assumptions about the size of the board that it is being passed. For example, the board might be the standard 19 by 19, but it might also be 10 by 12. However, the function may assume that the coordinates of the last move played are valid ones.
Take a look at the file tester.l. If the five-in-row-p function is coded correctly, the following output should be produced when (test) is typed into the Common Lisp command prompt:
Win for WHITE playing at (0, 3) Win for WHITE playing at (0, 6)
The following materials must be received on or before Friday, September 21st at noon.