6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 16, 2024 6:57 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Apr 18, 2024 9:48 pm 
Offline

Joined: Fri Jan 21, 2022 8:57 pm
Posts: 4
Hi folks,

I've written a Hangman game in Forth for my Planck 65C02 system. It's written in Tali Forth 2 and also works in Tali running on py65mon and also in gforth. I think it's a fine example of beginner coding. :D Any feedback or suggestions for improvement or for writing more idiomatic Forth would be gratefully accepted.

It's on GitHub here: https://github.com/bjchapm/hangman/

Thanks again to all of you for creating these fantastic software and hardware tools.

Best wishes,

Ben


Top
 Profile  
Reply with quote  
PostPosted: Thu May 16, 2024 6:08 pm 
Offline

Joined: Sun May 13, 2018 5:49 pm
Posts: 248
Hi Ben,

This is an excellent little game. I enjoyed playing it. This should run on most forths that support AT-XY and ANSI escape sequences in the terminal for moving the cursor around.

I think Patrick (pdragon) is looking into adding support for KEY? in Tali2, which would let you get better random numbers by asking the user to press a key and use how long it took to seed your random number generator (rather than using HERE). KEY? is in an optional wordset, though, so your current version is probably a bit more portable.

This doesn't really look like beginner Forth. It just looks like regular Forth and is pretty easy to read and follow.

I see your license is compatible with Tali2's Public Domain license. I'd be happy to accept a pull request to add it to Tali2's forth_examples folder (probably in its own subfolder, so you can include your README.md and LICENSE files without having to worry about filename clashes), or I can add it myself with your permission.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron