Author Topic: [Contest] Siam  (Read 4961 times)

0 Members and 1 Guest are viewing this topic.

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
[Contest] Siam
« on: July 02, 2012, 05:03:10 pm »
Hello !

I will finally enter the contest if I have time enough to finish my game. :)

Siam is a board game, in the spirit of chess or checkers. (but very different, actually ! ^^)



It is a 2 player game : elephant VS rhino. You play on a board of 5*5 squares and each player have 5 pieces.
At the beginning there are only 3 rocs in the middle of the board. The goal is to push one of the rocs out of the board.
There are specific power relations between the pieces :
(indeed, an animal (elephant or rhino) can push only in its direction. So the direction of pieces is very important.)
* an animal can push only one roc.
* two animals in the same direction add their force. (they can push 2 rocs for example)
* two animals face to face can't move. It cancels.
For more informations, see the rules :
http://regle.jeuxsoc.fr/siam__rg.pdf

This topic was the first lap of the TI-Concours 2012 in the TI 68k categorize.
I hadn't time enough to programm an AI, though, but the game works pretty well and is very nice to play with a friend ! :)
Here's a screen :


So, this contest is a good pretext to think about such an AI ! ;) I have already made several tests and had some results.. But it won't be feasible on TI 68k as I do, because it would take too much time in calculations..
On Nspire, it is different obviously !

I already have to adapt the TI 68k version to a Nspire one, and it's not easy.. :/
I tried first with Lua, but there are some complications, if I want to use the Basic code..
So I want to make it entirely in Basic !
- A Basic game ? On Nspire ? Even today with C/ASM and Lua possibilities ? U mad ?? :P

Yes ! I will use the geometry application for some graphics...
Moreover, I can thereby enter the Nspire Basic categorize ! ;)

EDIT :
« Last Edit: July 05, 2012, 11:09:50 am by Loulou 54 »
Some of my program available here.. :)
http://ti.bank.free.fr/index.php?mod=archives&ac=voir2&id=1471

     

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: [Contest] Siam
« Reply #1 on: July 02, 2012, 07:17:00 pm »
Very cool, I havnt seen any Nspire basic games released for a long time, that have graphics anyway.
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: [Contest] Siam
« Reply #2 on: July 02, 2012, 07:18:17 pm »
Does sound crazy, but hopefully you can make it a great game.  :)

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: [Contest] Siam
« Reply #3 on: July 02, 2012, 09:25:33 pm »
The Nspire's TI-Basic is too limited. Come on... it doesn't even have Input. Also there is no 68k section in the contest. Good luck!
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: [Contest] Siam
« Reply #4 on: July 03, 2012, 01:40:45 am »
I too am under the impression that nSpire BASIC is to slow and limited for such applications. However, my information only comes from what others have said, as I have never used it myself. Personally I think this would be a great Lua project. If you are able to pull it off in nSpire BASIC though, you have my respect. 8) Good luck whatever route you decide to take!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Contest] Siam
« Reply #5 on: July 03, 2012, 05:12:08 am »
The Nspire's TI-Basic is too limited. Come on... it doesn't even have Input. Also there is no 68k section in the contest. Good luck!
Did you forget Request ? (and RequestStr ?)
But yes, it's limited anyway and that's why Lua's there :)
« Last Edit: July 03, 2012, 05:12:15 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
Re: [Contest] Siam
« Reply #6 on: July 03, 2012, 06:36:03 am »
Thanks :)

Yes, fortunately there are Request/Text functions..
But no "Pause" function and the worse : no GetKey() function ! :/ (And don't talk about graphic functions..)

But I have found a way to make the game play not too bad.. ^^

Am I allowed to share some screens before the end of the contest ?
Some of my program available here.. :)
http://ti.bank.free.fr/index.php?mod=archives&ac=voir2&id=1471

     

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Contest] Siam
« Reply #7 on: July 03, 2012, 07:02:23 am »
yes just no executables and/or source code.
I'm not a nerd but I pretend:

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
Re: [Contest] Siam
« Reply #8 on: July 04, 2012, 06:23:02 pm »
I have finished the adaptation of the game so it is already playable. :)

Now let's think about the AI !  :thumbsup:
Actually I've already done a big part today ! But this is pretty hard, and it's not finished yet..  :-X

Here is a screen of what I have managed to do with the geometry application !  :thumbsup:

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: [Contest] Siam
« Reply #9 on: July 04, 2012, 09:01:59 pm »
Wow, that looks pretty impressive Loulou! Nice work! :D

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
Re: [Contest] Siam
« Reply #10 on: July 08, 2012, 09:18:47 am »
I've managed to finish in time ! :)

AI works well even if some improvements remain, as always.. ;)
« Last Edit: July 08, 2012, 09:19:04 am by Loulou 54 »
Some of my program available here.. :)
http://ti.bank.free.fr/index.php?mod=archives&ac=voir2&id=1471

     

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [Contest] Siam
« Reply #11 on: July 08, 2012, 01:31:24 pm »
That looks great for a basic game !

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: [Contest] Siam
« Reply #12 on: July 08, 2012, 09:12:34 pm »
this does look rather impressive =D
i've never seen such a graphically-intensive game in nSpire basic. did they update what you could do in basic since the original?