PAINTOUT is a strategy game based on the Gaussian Theorem of Convergence of Probabilities, which suggests that this puzzle can be solved but could take up to 625 moves (ie. 25 * 25). However, depending upon the starting condition (which is randomly set up by Ami), an almost complete solution can be obtained within about 20 moves. The presentation of the puzzle is described within the program itself. Input* are all single characters and therefore do cot require the use of the key. If it becomes hopeless, then press the > character to end the current arrangement. The routines and subroutines within the program are: 10 Author details Subroutine Area - 70 Set up Partem
- 130 Draw pattern on screen using redefining of windows concept.
- 210 Draw field outlines
- 250 Label the screen blocks
- 290 Draw the changed blocks
- 390 Main program loop
- 590 "Win" response
- 690 "Give-up" response
- 770 Initialisation and Instructions
Variable names have been chosen to indicate the functions so that modifications can he easily achieved (if required). As a suggested enhancement, a sound routine could be added at line 325.If you manage to solve the puzzle within a 'low' number of moves, then perhaps you should apply to the MENSA Society (or are you a member already?) TAU |