www.vitenka.com | ToothyWiki | Vitenka | RecentChanges | Login | Webcomic
An attempt to code up a wulfspurren clone.
[.txt View compiler errors]
// Game logic goes here
// First part of the logic: Moving tokens on the board and then hitting 'ok'
// Second part of the logic: Processing that board position ToDo no time soon.
// Moving the board around:
// This is meant to resemble 15 numbered tokens which can each be placed onto a board (of 15 spaces) with each board slot containing exactly 0 or 1 tokens. The 'second board' is just a spare place to put the tokens which aren't in use.
// Each board slot can have a token (1 - 15), be empty (0) and inactive or be empty and ready to rx (-1 - -15).
// The second board - the same, but may need different identifiers?
// OnClick: 0 - nothing happens. Ever.
// OnClick: 1-15
// All squares on the first board transition to (-1 - -15)
// The appropriate square (1-15) on the second board transitions to (-1 - -15)
// OnClick: -1 - -15 (first board)
// This square transitions to (1-15)
// Every OTHER -1 - -15 square - on both boards - transitions to 0.
// Display information goes here
// Per player:
// A 'go' button (with confirm)
// Three cards
// A grid (5x3) which is the players current board choice
// A grid (5x3) containing the currently unused counters
// Everything contains a number 0-15.