Jump to content

Animal guessing game 1.0.0

   (1 review)

1 Screenshot

About This File

After seeing others post conversions of classic basic programs, I remembered this one where the computer plays an animal guessing game with you.

It tries to guess your secret animal by asking questions about it, and if it doesn't know the animal, it asks about your chosen animal so it knows about it the next round!

(It's basically building a binary search tree)

note: all knowledge is lost when the program exits. (maybe I'll make a future version where it can save/load the animals and questions)
Source code is here: https://github.com/irmen/prog8/blob/master/examples/animals.p8


try_it

Yes

try_it_start_prg

animals.prg
  • Like 4
 Share


User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

×
×
  • Create New...

Important Information

Please review our Terms of Use