implemented rendering of beads on abacus
This commit is contained in:
1 parent
475b1ed05c
commit
fe9263cfae
2 files changed
+33
-4
No files matched your search
@@ -53,7 +53,13 @@ abacusLeft s =
|
||||
else ' '
|
||||
|
||||
beads :: Abacus -> [(String, String)]
|
||||
beads = undefined
|
||||
beads a = map
|
||||
( \n ->
|
||||
( replicate (getNumBeads a - n) 'O'
|
||||
, replicate n 'O'
|
||||
)
|
||||
)
|
||||
(rungList a)
|
||||
|
||||
abacusRight :: AppState -> [String]
|
||||
abacusRight = undefined
|
||||
|
||||
Reference in new issue
Block a user