Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: leafy on December 19, 2012, 01:56:17 pm

Title: Reversi (Othello)
Post by: leafy on December 19, 2012, 01:56:17 pm
Hey guys,

So I wanted to finally learn how to use interrupts, so I made a Reversi program for kicks. Some of you might know this game as Othello, but whatever. So this is pretty different from most other reversi programs for calc out there, because it's going to have a built-in AI that I'm trying to make as strong as possible (my goal is to beat builder's dad, who's apparently a reversi champ!)

So far for the AI, I'm utilizing a combination of minimax and strong evaluation (for corners/edges), but I'm still ironing that out so it doesn't destroy the VAT like it does now :P Here's a screenshot of a very early version, at any rate.

(http://i.imgur.com/4KaYn.gif)
Title: Re: Reversi (Othello)
Post by: Roboman on December 19, 2012, 01:59:25 pm
Nice!  But what does this have to do with interrupts?
Title: Re: Reversi (Othello)
Post by: leafy on December 19, 2012, 02:00:39 pm
The thing is, some functions in this game take an extremely long time to calculate out (especially the AI!) The only way I could stick with using greyscale then is if I used interrupts, so it'll still look nice while it's doing all the calculations in the background.
Title: Re: Reversi (Othello)
Post by: Roboman on December 19, 2012, 02:39:53 pm
Anyways... back on to the topic of reversi...
Is the AI working(at all) and if so, can we see it play against itself XD

*edit
I guess if not the easiest way to chees out of ai is to have it select the first valid move it finds :crazy:
Title: Re: Reversi (Othello)
Post by: Sorunome on December 19, 2012, 08:30:44 pm
Wow, that greyscale is looking epic!
And good luck on the AI! :D
Title: Re: Reversi (Othello)
Post by: epic7 on December 19, 2012, 09:36:21 pm
That's pretty O.O
I gotta learn how to play this game :P
Title: Re: Reversi (Othello)
Post by: Sorunome on December 19, 2012, 09:39:20 pm
they are actually pretty simple
http://en.wikipedia.org/wiki/Reversi#Rules
Title: Re: Reversi (Othello)
Post by: Hayleia on December 20, 2012, 01:04:53 am
???
Didn't I make post on this board yesterday ? Like saying that the organization was a lot like thepenguin's Chess and all ?
Where did they go ? ???
Title: Re: Reversi (Othello)
Post by: leafy on December 20, 2012, 01:07:26 am
Sorry, I removed them because I felt they were derailing the topic :P I thought I only removed the ones discussing interrupts, but if I deleted yours too I'm sorry D: I should probably avoid doing that in the future, though.
Title: Re: Reversi (Othello)
Post by: Roboman on December 20, 2012, 11:14:28 am
Wut?  I thought that this thread was for discussing reversi with you...  and also helping you and giving suggestions... and that you are doing this mostly for interrupt practice?
Title: Re: Reversi (Othello)
Post by: leafy on December 20, 2012, 11:18:41 am
Wut?  I thought that this thread was for discussing reversi with you...  and also helping you and giving suggestions... and that you are doing this mostly for interrupt practice?
Well, if you want to discuss interrupts, please do it in an axe thread rather than derailing this topic :P By all means, reversi suggestions are fine, but limit the side discussions if possible.
Title: Re: Reversi (Othello)
Post by: Roboman on December 20, 2012, 11:22:51 am
Ok, fine... but still... Can I has AI play against itself?  XD
Title: Re: Reversi (Othello)
Post by: leafy on December 20, 2012, 11:24:24 am
Ok, fine... but still... Can I has AI play against itself?  XD
Yes, the AI will eventually be able to play with itself. This is how I'm generating the evaluation table anyways.
Title: Re: Reversi (Othello)
Post by: Roboman on December 20, 2012, 11:25:52 am

Yes, the AI will eventually be able to play with itself.
:w00t:
Title: Re: Reversi (Othello)
Post by: Eiyeron on December 20, 2012, 02:19:11 pm
Yes, the AI will eventually be able to play with itself.
(http://diablo.incgamers.com/wp-content/uploads/2012/09/Genius.jpg)

No really, I'm waiting to see the calc trying to own itself! :p