Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:40 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 and MMB4W: Othello (Reversi) Game

Author Message
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 11:29pm 26 Jul 2022
Copy link to clipboard 
Print this post


OthelloMax.zip

Here's an Othello / Reversi game for the Color Maximite 2. It can play at a good level and is also working with MMBasic for Windows (keyboard only).

On the CMM2, it supports Nunchuck and Classic controllers. You can play against the computer, against another player or let the computer play vs itself.

Hope you like it!
Edited 2022-07-27 10:15 by Lodovik
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 01:21am 27 Jul 2022
Copy link to clipboard 
Print this post

It is nice to see support for Nunchuck and Classic controllers.
The graphics look quite good.
 
mclout999

Guru

Joined: 05/07/2020
Location: United States
Posts: 492
Posted: 05:30pm 27 Jul 2022
Copy link to clipboard 
Print this post

Nice Job.

I tried it on MMBASIC for Windows and it through a lot of errors and I am not sure why.

I am on 5.0.03B10.  I think that is the latest one.

The first one was 8 invalid (valid is 1 to 0) in the Mode command. I change 8 to 1 and tried again.
The second was invalid option on your OPTION Degrees line.  

How did you get it to run in WINDOWS?

EDIT:  I reinstalled My version of MMBASICW and it works just fine sorry.
Edited 2022-07-28 03:44 by mclout999
They call me Shai-Hulud (The maker)
 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 09:46pm 27 Jul 2022
Copy link to clipboard 
Print this post

Thanks for your comments.

Yes, you need the most recent MMB4W. You can find it  on the MMBasic for Windows beta thread by scanning the posts backward. Don't download the one from the first post as it is an older version. Here's the link to the V5.07.03b10 that I used for testing:

MMBasic V5.07.03b10

It still have some quirks, like colors not exactly the same and you have to launch the help menu twice sometimes to get it displayed correctly. Also, if the fonts don't look as in the above picture, do a CTRL-C and then RUN the program again.
Edited 2022-07-28 08:57 by Lodovik
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 487
Posted: 11:53pm 27 Jul 2022
Copy link to clipboard 
Print this post

  Lodovik said  
OthelloMax.zip

Here's an Othello / Reversi game for the Color Maximite 2. It can play at a good level and is also working with MMBasic for Windows (keyboard only).

On the CMM2, it supports Nunchuck and Classic controllers. You can play against the computer, against another player or let the computer play vs itself.

Hope you like it!


Here's what it looks like on my system:

 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 12:18am 28 Jul 2022
Copy link to clipboard 
Print this post

  toml_12953 said  
Here's what it looks like on my system:


MMBasic for Windows is still in beta and has some bugs. You may have missed the solution in my previous post but I found a shorter way: Just after starting the program, press ESC then F2. This will exit the program then run it again. It should be OK except for the border around the game board. I have not modified the code to get around those bugs since they will probably resolved in time. My main target was the CMM2 and it's just a bonus and a nice surprise that it runs on MMBasic for Windows without any modification (Great job, Peter!).

Also, be sure you have the latest version of MMBasic for Windows (see my previous post).
Edited 2022-07-28 11:56 by Lodovik
 
mclout999

Guru

Joined: 05/07/2020
Location: United States
Posts: 492
Posted: 02:51am 28 Jul 2022
Copy link to clipboard 
Print this post

I really love this version of Othello.  It works perfectly on both my PC and my CMM2.  It is the best version I have ever used.  The graphic rendering of the computer's move computations is mesmerizing.  I have never seen one that did that and it is just beautifully done like the whole thing is.  I have made a shortcut on my desktop so I can play it easier.  Kudos to you for my favorite MMBasic game so far.  Thanks.
They call me Shai-Hulud (The maker)
 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 03:03am 28 Jul 2022
Copy link to clipboard 
Print this post

  mclout999 said  I really love this version of Othello.  It works perfectly on both my PC and my CMM2.  It is the best version I have ever used.  The graphic rendering of the computer's move computations is mesmerizing.  I have never seen one that did that and it is just beautifully done like the whole thing is.  I have made a shortcut on my desktop so I can play it easier.  Kudos to you for my favorite MMBasic game so far.  Thanks.


Thank you very much! I'm glad you enjoy it!
 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 01:42am 02 Aug 2022
Copy link to clipboard 
Print this post

New version (1.0.2)

I've opened a Github account so the download link will always be the same.

Things that changed:

-I found workarounds for the mangled display in MMB4W. Only the border color is incorrect now. No more need to stop then rerun the program to circumvent the problem.

-I have implemented an Undo button so you can go back to before the last move you've made. Note that you can go back up to the beginning of the game. When you press Backspace, your opponent move (if any) then your move before that will be reverted.

-Some keyboard issues corrected in MMB4W.

Here's the download link:

Othello Max V1.0.2
Edited 2022-08-02 13:20 by Lodovik
 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 02:10am 04 Aug 2022
Copy link to clipboard 
Print this post

Version 1.0.3

-Added the RANDOMIZE TIMER command for the MMB4W version to correctly initialise the random number generator.

-Speed improvements by sorting and maintaining a dynamic list of the unplayed squares with the presumed best ones on top. Gained about 40% speed due to having more branches cutoff by the Alpha-Beta search. The level 5 is more enjoyable on MMB4W. It's less apparent on other levels because the search is less deep.

Othello Max V1.0.3
Edited 2022-08-04 12:25 by Lodovik
 
Lodovik

Regular Member

Joined: 17/05/2021
Location: Canada
Posts: 41
Posted: 03:33pm 06 Aug 2022
Copy link to clipboard 
Print this post

Version 1.0.4

-Mouse is now supported on Windows (MMB4W). Left button to play, right button to undo previous move. You still make the option selection with the keyboard. The mouse is not working on the CMM2 (could not be tested).

Othello Max V1.0.4
Edited 2022-08-07 01:40 by Lodovik
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025