Instructions: Create a new notebook called Battleship
in your FunWithBlocks
directory and follow the instructions below to convert it to a visual game with the aid of ipythonblocks.
Preliminaries: At the top of your notebook, include a "Heading 1" cell with the title Battleship. Then include the inline functions and libraries you need by adding a code cell that invokes the %pylab inline
magic and imports the needed packages.
Battleship
in your FunWithBlocks
directory and use ipythonblocks to make it more visual. Your output for this exercise will be graded. Your code must implement the elements listed in items 1-5 above. You will also receive a creativity bonus for any additional features that the code implements (such as those suggested in item 6 or others you come up with). Be sure to document the extra features too!
Note: ipythonblocks may show up again on the midterm...