Jump to content

New game uploaded: Animal guessing game


desertfish
 Share

Recommended Posts

Animal guessing game

View 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


 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use