-
-
Save slior/ab8b00b00d6c59c93ebe4dfd7565c906 to your computer and use it in GitHub Desktop.
Mancala (384fd01d7acda41e1611dc2f7f34104660bdfc81) - ui elements def
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let stoneUIElement = []; | |
... | |
function initDrawingElements(cellCount) | |
{ | |
range(1,cellCount).forEach( _ => stoneUIElement.push(None)); | |
} | |
function rememberUIObj(boardCell,el) { stoneUIElement[boardCell] = maybe(el); } | |
function forgetUIObj(boardCell) { stoneUIElement[boardCell] = None; } | |
function uiObjAt(boardCell) { return stoneUIElement[boardCell]; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment