I was bored the other day so I decided to port the game "Dukedom" from C to Perl. Here is the result, I'd greatly appreciate comments/feedback on how to make it display agnostic so it can be used for websites, Tk, etc. besides command line scripts. I have code refs now that can be changed out, but I'm pretty sure I need to do more. I am toying with using exception objects to signal the need for display/input and to provide callbacks to re-enter the state machine at the proper point.
Please keep in mind that this is only the first draft and no docs or tests have been written yet. However, the command line script will work and allow you to play the game.
https://github.com/boftx/Games-Dukedom
You can find the original code that I ported from here: https://github.com/caryo/Dukedom/blob/master/imports/dukedom.c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A port of "Dukedom" to Perl
by Nemo Clericus (Beadle) on Oct 07, 2014 at 20:24 UTC | |
by Tux (Canon) on Oct 08, 2014 at 05:55 UTC | |
by boftx (Deacon) on Oct 08, 2014 at 21:51 UTC | |
by Tux (Canon) on Oct 09, 2014 at 06:54 UTC | |
by boftx (Deacon) on Oct 07, 2014 at 22:11 UTC | |
by Your Mother (Archbishop) on Oct 08, 2014 at 16:17 UTC |