Hi,
Coding something for the kids of the kids --
I already wrote the interface , the question is can we develop something that beats the human.
Kind of puzzle game :
Clicking stones of a certain colour, removes all the connected of the same colour (left, right, up , down connected).
The game has to be finished with as less as possible stones.
Clicking a not-connected square does not work (that would be too easy).
So, C , C++ , Basic ... etc ... hackers , if interested .. can we set up a bot competition ?
attached, a program that explains it all -- do some left mouse-clicks -- but does not play itself (thinking about how to do it).
Graphics are still simple, but easy to change into sprites with sound etc ... (that's the easy thing)
Anyone interested ??
best Rob
(doing it in NewLISP for the moment, scripting , works fast and easy )
as usual ... use USE THIS TO START .... to remove the evil Java task after exit
.. again gives the same grid , ... new a new random one.
the slightly difficult part of this code was :
(define (remove-blocks x y matchb)
(if (!= matchb (board x y)) true
(begin (setf (board x y) leeg)
(remove-blocks (+ 1 x) y matchb)
(remove-blocks x (+ 1 y) matchb)
(remove-blocks (- x 1) y matchb)
(remove-blocks x (- y 1) matchb))))
Quadruple recursion
.