Othello (A.K.A. Reversi)

General games-related topics
Post Reply
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Othello (A.K.A. Reversi)

Post by stefano »

This is another piece of history.
This game was written by Robert Halstead at the Real-Time Systems Lab at MIT.
In 1978 Leor Zolman really wanted to play this same game on his home computer, so he tried to rewrite it in assembly language.
He eventually ended up creating a full native C compiler for the 8080 CP/M systems with incredible features.
The z88dk under some aspect is less powerful than the BDS C, so I had to adapt the source and discovered how fascinating it was: digging here and there helped me to improve a bit our compiler's optimizer much enough to get a minimal WRX graphics version fitting in 16K. The graphics were missing in the original program, so I provided also a 'legacy' version as it would have been if someone decided to cross-compile othello.c at those times with BDS C on a CP/M system (which, in my opinion is not as hard as it seems).

The link provides the Othello game in many flavours: WRX HRG (16 and 32K), Text (sinclair style, legacy and Upper/Lowercase text on WRX) and ZX80 !!!
Attachments
othello.zip
(36.99 KiB) Downloaded 884 times
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Othello (A.K.A. Reversi)

Post by stefano »

Memotech HRG version, 16 and 32K RAM mode.
The 16K trick uses a customized scanline counter which has never been tested on the real hardware, feedback is welcome.
Attachments
othello-mt-hrg.zip
Othello, Memotech HRG - 16K and 32K versions
(12.38 KiB) Downloaded 386 times
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Othello (A.K.A. Reversi)

Post by sirmorris »

Thanks for all the effort you're putting in to ensuring that the zx81 versions work! It's much appreciated :D
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Othello (A.K.A. Reversi)

Post by stefano »

Well, doing it only for "theorical" systems wouldn't make much sense, right ?
I'd be glad if you (or someone else reading this post) could try on a real TV set my latest DSTAR related post (i.e. the "vanilla" text mode) to check whether the display is still stable:

download/file.php?id=2145

I put in a small hack to handle the display variations easily but now I'm not 100% sure of its compatibility.
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Othello (A.K.A. Reversi)

Post by siggi »

Hi Stefano
I played the 16K and 32K WRX versions and also DSTAR vanilla on my real ZX81 laptop: the display of all versions is stable :mrgreen:

Thanks a lot
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Othello (A.K.A. Reversi)

Post by stefano »

It's very good news, thanks a lot :)
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Othello (A.K.A. Reversi)

Post by stefano »

OTHELLO_WRX32K.P
Othello in WRX mode, 32K RAM, bigger font variant
(14.41 KiB) Downloaded 342 times
..no much to say, this variant for the WRX graphics looks slightly better than the one I posted long ago.
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Othello (A.K.A. Reversi)

Post by stefano »

The ARX mod variant is giving me some trouble.
I had random stability problems, but after playing it for a while I have the impression that it is stable enough. To save enough memory to fit in 16K I'm using the ROM font with some shift&overlap trick to simulate the missing characters.
OTHELLO_ARX16K.P
Othello, ARX 16K
(12.78 KiB) Downloaded 300 times
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Othello (A.K.A. Reversi)

Post by Andy Rea »

stefano wrote: Wed Oct 11, 2017 2:44 pm The ARX mod variant is giving me some trouble.
I had random stability problems, but after playing it for a while I have the impression that it is stable enough. To save enough memory to fit in 16K I'm using the ROM font with some shift&overlap trick to simulate the missing characters.

OTHELLO_ARX16K.P
awe man... crashed half way through a game for me.... :(

great work on the game.

Regards Andy
what's that Smell.... smells like fresh flux and solder fumes...
Post Reply