Recent

Author Topic: othello #2 :)  (Read 1483 times)

speter

  • Hero Member
  • *****
  • Posts: 528
othello #2 :)
« on: August 25, 2025, 04:17:28 am »
A couple of days ago Dzandaa posted an Othello game and a couple of hours later I posted one in response.

 I am now posting a (much cleaned-up) version of my othello (in a new thread, to keep the other "on topic"). The version I posted in the other thread was 987 lines of pascal, the version I am posting today is 451 lines. I rewrote the code that searches the board, previously it had 8 loops (one for each search direction); this is now uses a "direction" constant to work out the directional increment. It also removes the annoying showmessage() from the start. :o

I believe the program should work in most GUI OS's.

cheers
S.

I climbed mighty mountains, and saw that they were actually tiny foothills. :)

Boleeman

  • Hero Member
  • *****
  • Posts: 1158
Re: othello #2 :)
« Reply #1 on: August 25, 2025, 03:44:52 pm »
I forgot the rules for Othello game play and needed to Google them.


Thank you SPeter (and DZandaa) for your nice Othello games.



 

TinyPortal © 2005-2018