Othello (A.K.A. Reversi)

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

Othello (A.K.A. Reversi)

Post by stefano » Tue Oct 29, 2013 7:16 am

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 212 times

User avatar
stefano
Posts: 340
Joined: Tue Dec 11, 2012 8:24 am
Contact:

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

Post by stefano » Wed Oct 29, 2014 9:34 am

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 39 times

User avatar
sirmorris
Posts: 2698
Joined: Thu May 08, 2008 4:45 pm
Location: oxon, uk

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

Post by sirmorris » Wed Oct 29, 2014 10:31 am

Thanks for all the effort you're putting in to ensuring that the zx81 versions work! It's much appreciated :D
--=== ZXpand+ ... A more moderner all-in-one upgrade solution for ZX81 ===--
* SD/MMC storage * 32K Hires-capable RAM * AY sound chip * Joystick port * Serial *
* BASIC enhancements - plug & play * Reset button * Auto-boot facility *

User avatar
stefano
Posts: 340
Joined: Tue Dec 11, 2012 8:24 am
Contact:

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

Post by stefano » Wed Oct 29, 2014 8:34 pm

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: 773
Joined: Thu May 08, 2008 8:30 am
Location: Dauernheim, Germany
Contact:

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

Post by siggi » Sat Nov 08, 2014 10:57 am

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
http://zx81-siggi.endoftheinternet.org/index.html

User avatar
stefano
Posts: 340
Joined: Tue Dec 11, 2012 8:24 am
Contact:

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

Post by stefano » Sat Nov 08, 2014 3:26 pm

It's very good news, thanks a lot :)

User avatar
stefano
Posts: 340
Joined: Tue Dec 11, 2012 8:24 am
Contact:

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

Post by stefano » Tue Oct 10, 2017 1:31 pm

OTHELLO_WRX32K.P
Othello in WRX mode, 32K RAM, bigger font variant
(14.41 KiB) Downloaded 16 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: 340
Joined: Tue Dec 11, 2012 8:24 am
Contact:

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

Post by stefano » Wed Oct 11, 2017 1: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
Othello, ARX 16K
(12.78 KiB) Downloaded 8 times

User avatar
Andy Rea
Posts: 1268
Joined: Fri May 09, 2008 1:48 pm
Location: notts UK

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

Post by Andy Rea » Thu Oct 12, 2017 4:45 pm

stefano wrote:
Wed Oct 11, 2017 1: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
6 x ZX81, 1 x TS1500 , 1 x +3e, 1 x timex 2040 printer, 1 x timex 2020 cassette deck, siclair printer and some spectrum

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest