Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Deep Toaster on August 08, 2011, 12:36:07 am

Title: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 08, 2011, 12:36:07 am
More info coming soon!

EDIT0: Play it online at http://education.ti.com/html/nspireplayer/3.0.1/application/?nspirefile=http://clrhome.org/projects/reversi/English/Reversi.tns (http://education.ti.com/html/nspireplayer/3.0.1/application/?nspirefile=http://clrhome.org/projects/reversi/English/Reversi.tns), or download here (http://ourl.ca/12565/235846)! A video:



EDIT: A screenshot:

(http://img.removedfromgame.com/imgs/CAPTURE.GIF)

EDIT2: Some info!

Reversi (Nspire)

Reversi is one of my favorite board(-ish) games of all time, so here's my port in Lua! I don't actually have an Nspire so I don't really even know if it works or not, but hopefully nspire_emu is accurate enough :D

Controls:

Arrow keys (or mouse) to move the cursor, click (or enter) to put down a piece. Tab for a hint (in case you can't find a place to put down your piece), escape to go back to the main menu.

AI:

Comes in two modes, n00b (easy) or WinRAR (hard). (Should I cut down on the memes? :P) WinRAR looks two steps ahead, n00b one. It's not very intelligent, but oh well.

Er, more info coming soon.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 08, 2011, 12:57:21 am
I know of this game by Othello, it is fun!
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: yunhua98 on August 08, 2011, 12:35:23 pm
wow.  It looks good, have you sent the program in yet?
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: pianoman on August 08, 2011, 12:42:28 pm
Wow, this looks great! Can't wait to play it!
On a side note, how did you make the AI "look ahead?"
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 08, 2011, 12:48:25 pm
Wow, this looks great! Can't wait to play it!
Thanks!
On a side note, how did you make the AI "look ahead?"
Go through every possible placement and count the number of pieces advantage after the play. In the case of WinRAR, it also goes through the opponent's possible moves. (Lua is freakin' fast O.O)
wow.  It looks good, have you sent the program in yet?
No, and I haven't even backed up <_<
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Hot_Dog on August 08, 2011, 02:17:29 pm
Lua is definitely fast, and you are definitely awesome

Hot_Dog really needs to buy a Nspire :)
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 08, 2011, 02:26:33 pm
Lua is definitely fast
It is.
and you are definitely awesome
Thank you :D
Hot_Dog really needs to buy a Nspire :)
I actually took the time to make this game 100% playable in any of TI's mouse-driven simulators. Which means you can just drag it in to this (http://education.ti.com/html/nspireplayer/3.0.1/application/) and play it online! That's how I'm doing it myself anyway, since I don't have an Nspire either :D
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: squidgetx on August 10, 2011, 09:27:50 am
You should make the game in isometric 3d like how it is on the title screen :o

j/k (no, do it ;D) Regardless, this looks cool. :)

Also maybe make the white pieces easier to see? How many shades of gray can you use, anyway?
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: pianoman on August 10, 2011, 11:39:51 am
You should make the game in isometric 3d like how it is on the title screen :o

j/k (no, do it ;D) Regardless, this looks cool. :)

Also maybe make the white pieces easier to see? How many shades of gray can you use, anyway?
There are 16 shades of gray on the Nspire.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 10, 2011, 12:29:19 pm
You should make the game in isometric 3d like how it is on the title screen :o
If I stop procrastinating, I could actually get that done. I accidentally that once, anyway :D

Only reason I didn't keep it was because I was too lazy to make the pieces 3D to match.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 10, 2011, 12:31:33 pm
You should make the game in isometric 3d like how it is on the title screen :o

j/k (no, do it ;D) Regardless, this looks cool. :)

Also maybe make the white pieces easier to see? How many shades of gray can you use, anyway?
I agree, perhaps make the background a medium shade of gray.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 10, 2011, 12:35:59 pm
You should make the game in isometric 3d like how it is on the title screen :o

j/k (no, do it ;D) Regardless, this looks cool. :)

Also maybe make the white pieces easier to see? How many shades of gray can you use, anyway?
I agree, perhaps make the background a medium shade of gray.
It's actually light green, so if I make it any darker it won't look as nice on an Nspire CX. A lot of players are probably gonna try it online anyway.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 11, 2011, 06:55:11 pm
Finished making it 100% compatible with the online player (http://education.ti.com/html/nspireplayer/3.0.1/application/), and it's done and sent in!
EDIT: I cut down a quarter of the file size by taking out unnecessary whitespace O.O
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Jim Bauwens on August 12, 2011, 05:46:48 am
Looks like a nice game.
Good luck!
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 14, 2011, 11:11:49 pm
Hmm, I have one more day to work on it tomorrow. Maybe I'll touch it up a bit.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Kjelddy on August 16, 2011, 05:25:52 am
works great on my n-spire cx :)
only a little thing (and i know u can't change that anymore for the contest). I tend to forget that u must press enter before the opponent does his turn (could this be done automaticly?)
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Munchor on August 16, 2011, 05:27:48 am
works great on my n-spire cx :)
only a little thing (and i know u can't change that anymore for the contest). I tend to forget that u must press enter before the opponent does his turn (could this be done automaticly?)

Does it have colours on the CX? I'm really wondering because Deep is not a colour-guy.

Also Deep, I agree with Kjelddy, the CPU playing should be auto ;)
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Jonius7 on August 16, 2011, 05:31:26 am
omg, i feel so bad that i actually have an nspire and have been inactive for 2 months+! Great game DT!
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 16, 2011, 11:02:19 am
works great on my n-spire cx :)
only a little thing (and i know u can't change that anymore for the contest). I tend to forget that u must press enter before the opponent does his turn (could this be done automaticly?)
I actually did that on purpose because without the extra keypress, playing two AIs against each other gets schizophrenic. (The screen flashes black and white about ten times a second O.O)
Does it have colours on the CX? I'm really wondering because Deep is not a colour-guy.
Of course! Hold on a bit and I'll post some links :)

Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 16, 2011, 12:21:22 pm
If there are two AI's, there could be a one second delay or something between the turns.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 16, 2011, 12:23:46 pm
mm. Well, too late now :/

By the way, remember you can always play it online here (http://education.ti.com/html/nspireplayer/3.0.1/application/?nspirefile=http://clrhome.org/projects/reversi/English/Reversi.tns)! Half my time was spent on making it compatible with the online player, and I don't want that to go to waste :D
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 16, 2011, 12:28:46 pm
It doesn't mean you couldn't release an update at a later date, even if it doesn't count towards the contest.

Just played it on the computer, and I tied :P Btw, is it intentional that you give people seizures at the end when you move the mouse?
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Munchor on August 16, 2011, 12:30:43 pm
mm. Well, too late now :/

By the way, remember you can always play it online here (http://education.ti.com/html/nspireplayer/3.0.1/application/?nspirefile=http://clrhome.tk/projects/reversi/Reversi.tns)! Half my time was spent on making it compatible with the online player, and I don't want that to go to waste :D

Well, I can't play it there XD It's Windows/Mac OS  only. I think, though, that it should be played on calculators (Real hardware) when judged.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Jim Bauwens on August 16, 2011, 12:33:56 pm
My problem with the online player/software is that it looks different then on real hardware (more ugly actually). Some functions just act different.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 16, 2011, 01:01:40 pm
Well, I can't play it there XD It's Windows/Mac OS  only. I think, though, that it should be played on calculators (Real hardware) when judged.
There's a Java .deb plugin, isn't there?
My problem with the online player/software is that it looks different then on real hardware (more ugly actually). Some functions just act different.
But hey, it works :D

Graphics are glitchy, but you can always resize to fit your needs.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Jim Bauwens on August 16, 2011, 02:11:10 pm
Quote
There's a Java .deb plugin, isn't there?
The problem is that is depends on binary blob's, and they are OS specific ;)
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 16, 2011, 02:52:49 pm
Well, I can't play it there XD It's Windows/Mac OS  only. I think, though, that it should be played on calculators (Real hardware) when judged.
There's a Java .deb plugin, isn't there?
My problem with the online player/software is that it looks different then on real hardware (more ugly actually). Some functions just act different.
But hey, it works :D

Graphics are glitchy, but you can always resize to fit your needs.
At least for your game, DT, it works fine. The title screen is tiny, but in the actual game it fills the whole screen and looks great.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: ztrumpet on August 16, 2011, 05:13:14 pm
That looks amazing, Deep.  Great job on it. :D
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 16, 2011, 05:14:20 pm
Well, I can't play it there XD It's Windows/Mac OS  only. I think, though, that it should be played on calculators (Real hardware) when judged.
There's a Java .deb plugin, isn't there?
My problem with the online player/software is that it looks different then on real hardware (more ugly actually). Some functions just act different.
But hey, it works :D

Graphics are glitchy, but you can always resize to fit your needs.
At least for your game, DT, it works fine. The title screen is tiny, but in the actual game it fills the whole screen and looks great.
Thanks! Most of the work into this game actually went into making it work there :D
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: fb39ca4 on August 16, 2011, 05:39:48 pm
Was it intentional for the background cause seizures after a game is finished and the mouse is moved?
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: TIfanx1999 on August 17, 2011, 05:14:32 am
Unfortunatley I can't get it to work in the document player. I'm running the most current Firefox on Win7 64 bit. Fails in IE as well. :/
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Jim Bauwens on August 17, 2011, 05:37:42 am
64 bit will probably be the problem :/
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Kjelddy on August 17, 2011, 06:39:13 am
and another small thing there is no winner stated :P you must count the block by yourself(atleast with ai vs ai)
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: runeazn on August 17, 2011, 10:06:33 am
cant you make it 2player?
so that we pass over the calc and play it?
like in math class and play a nice game of othello with your neighbor
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 17, 2011, 11:23:57 am
and another small thing there is no winner stated :P you must count the block by yourself(atleast with ai vs ai)

Yeah there is, at the end. It replaces the text that normally says "Black's turn" or "White's turn, so you might not have noticed the change.

Unfortunatley I can't get it to work in the document player. I'm running the most current Firefox on Win7 64 bit. Fails in IE as well. :/

Not my fault >.>

cant you make it 2player?
so that we pass over the calc and play it?
like in math class and play a nice game of othello with your neighbor

Of course, just choose Human for both players.
Title: Re: Reversi/Othello: DT's other 2011 contest entry
Post by: Deep Toaster on August 22, 2011, 04:54:11 pm
Nspire Reversi



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=713