#mathslap — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mathslap, aggregated by home.social.
-
@mdhughes @screwlisp @etenil
Recursive Math Slap!
This was my challenge. No LOOP. Just a recursive function.
It wasn't too hard.
Doesn't run in sbcl. Not sure why.
To run.
Download mathslap-rec.clisp
If you have clisp open a terminal in the directory containing mathslap-rec.clisp
clisp mathslap-rec.clisp
It should give text and numbers and add a number after each iteration.
-
@mdhughes @screwlisp @etenil
Recursive Math Slap!
This was my challenge. No LOOP. Just a recursive function.
It wasn't too hard.
Doesn't run in sbcl. Not sure why.
To run.
Download mathslap-rec.clisp
If you have clisp open a terminal in the directory containing mathslap-rec.clisp
clisp mathslap-rec.clisp
It should give text and numbers and add a number after each iteration.
-
Not sure what the lines of code do but I know how the game is played.
You take a deck of cards and remove the royals. This gives you Ace through 10 with Ace = 1.
You deal two cards. If someone can make an equation they slap the table. They say their equation and everyone agrees or disagrees.
If no one can make an equation you deal another card.
part1
-
Not sure what the lines of code do but I know how the game is played.
You take a deck of cards and remove the royals. This gives you Ace through 10 with Ace = 1.
You deal two cards. If someone can make an equation they slap the table. They say their equation and everyone agrees or disagrees.
If no one can make an equation you deal another card.
part1