home.social

#mathslap — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mathslap, aggregated by home.social.

fetched live
  1. @mdhughes @screwlisp @etenil

    Recursive Math Slap!

    This was my challenge. No LOOP. Just a recursive function.

    It wasn't too hard.

    gitlab.com/hairylarryland/math

    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.

    #lisp #clisp #mathslap #code

  2. @mdhughes @screwlisp @etenil

    Recursive Math Slap!

    This was my challenge. No LOOP. Just a recursive function.

    It wasn't too hard.

    gitlab.com/hairylarryland/math

    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.

    #lisp #clisp #mathslap #code

  3. @mdhughes @screwlisp

    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

    #games #math #MathSlap

  4. @mdhughes @screwlisp

    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

    #games #math #MathSlap