• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Design for my Android game : Snakes and ladders

 
Saloon Keeper
Posts: 2622
128
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made this design for an android game that i am planning to create. While normally I worry about the code logic, this time I used my Photoshop skills and spent hours making things pixel perfect. Any criticism is welcome

Rules for the game are as follows:
  • Each player takes turn to roll the dice
  • Upon landing on a snake mouth he slides down to square at tail
  • Upon landing on a ladder's start he climbs up to the ladder's end
  • First player to reach 100 wins
  • Rolling 6 on dice allows another turn
  • If player rolls more value than 100 he is 'bounced back' e.g. if he is at 99 and he rolls 5, he is bounced back to 96


  • See attached design pic
    Hopefully, my end game would be similar to what I actually designed
    snakes-and-ladders-design.jpg
    [Thumbnail for snakes-and-ladders-design.jpg]
     
    Java Cowboy
    Posts: 16084
    88
    Android Scala IntelliJ IDE Spring Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Nice!

    The only criticism I have is that everything is almost in the same brown color. Maybe you could use some more color variations.

    Good luck and have fun implementing the game and let us know when it's ready!
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Darn !!
    I simply selected an "All-Wood" theme

    Will definitely add more color to the board
     
    Marshal
    Posts: 69831
    278
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    The picture is too small for me to read the numbers. Or are they element names? I have never played games on a periodic table
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Alas .. This board has to have 10 x 10 squares. A phone screen is typically small to show so much details....
    Each of the squares has a number on it..
    You start from 1 then go right >>> when you reach 10 you go up and then left <<< and then so on till first player reaches 100
     
    Campbell Ritchie
    Marshal
    Posts: 69831
    278
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:. . .
    You start from 1 then go right >>> when you reach 10 you go up and then left <<< . . .

    There is a word for that. Boustrophedon.

    I presume you go down snakes and up ladders?

    Did you mean to post in the meaningless drivel forum, or would the games and android fora have been better locations?
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Nope, meaningless is a better place since this isnt a coding based question.
    Yes you go down snakes if you reach its mouth only and you go up ladders if you reach its base only.

    I had made this game in HTML in the past based on a thread discussion in coderanch in 2009 : https://coderanch.com/t/430755/Game-Development/java/snakes-ladders-game

    Here is a working version : http://salvin.in/SnakesLadders/
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi guys,

    I made a small preview version of this game :

    http://www.salvin.in/apk/SnakesNLadders.apk

    It's yet work in progress and I need to add the snakes, ladders, dice, etc...

    What I have done so far is just made a single player move randomly turn by turn till he reaches 100 and then traverse him back to 1

    I put a lot of love into some of the animations here. Hope you guys love it.

    By the way, I don't have much experience in android, this being my second application in this platform
     
    Ranch Hand
    Posts: 789
    Python C++ Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:Nope, meaningless is a better place since this isnt a coding based question.
    Yes you go down snakes if you reach its mouth only and you go up ladders if you reach its base only.

    I had made this game in HTML in the past based on a thread discussion in coderanch in 2009 : https://coderanch.com/t/430755/Game-Development/java/snakes-ladders-game

    Here is a working version : http://salvin.in/SnakesLadders/


    I played the html version and it seems to be pure chance. It might be more engaging if you could introduce some skill. It's kind of overly complicated for game that's just chance. If I didn't notice some skill element that it has, well, that's me
    The execution is real good though and demonstrates a lot of things. In the Android version does the die picture change with the throw? That would be a good touch.
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Guillermo Ishi wrote:
    I played the html version and it seems to be pure chance.


    Alas my friend, it is a game purely based on chance. There is a philosophy behind this game that life is unpredictable and there are snakes(vices) and ladders(virtues) on our journey. Wiki says here :

    The game is a simple race contest based on sheer luck


    Guillermo Ishi wrote:
    In the Android version does the die picture change with the throw?


    I haven't coded that yet, will think of something in those lines. That HTML version was very basic, here, in the android version, I feel that I can engage the user's interest by animating every move. The board itself will "flutter" randomly. You would get "popups" for every interesting event that happens like a snake bit, ladder climb, 6 rolled on dice, etc ...

    You can see what I mean by the "flutter" in the apk I uploaded.
     
    Guillermo Ishi
    Ranch Hand
    Posts: 789
    Python C++ Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for the wiki link. I thought it was a game you just made up. The wiki says "had root in morality lessons, where a player's progression up the board represented a life journey complicated by virtues (ladders) and vices (snakes)." If you want to engage the player by introducing a skill or talent element it would be interesting. You could become a philosopher by introducing skills and talents.
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hmm, for now I'll stick to the rules of the game
    But I am thinking of a few variations too. However I doubt skill will be involved in my variations.
    Putting choices in a game of luck would be wrong. However, there is another Indian board game that I would be planning after this : Ludo
    Ludo is a dice based game but it involves luck as well as choices.
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Update : Added Logic to generate a random board every time !!
    Now need to add dice and user turns ....

    Updated app url : Download Apk Here
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Campbell Ritchie wrote:
    ...
    There is a word for that. Boustrophedon.
    ...



    Is it 'Boustrophedon' ? since it goes bottom to top and not top to bottom... I may be wrong

    I'll take at least a week more to finish this since I am making this in my free time at home
     
    Campbell Ritchie
    Marshal
    Posts: 69831
    278
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    That is a good question. I have only seen boustrophedon to mean left→right→left→right. I couldn't find it in online thesauri.
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Likes 2
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Jesper had asked for colors ...

    Self Playing version at : www.salvin.in/apk/SnakesNLadders.apk

    Pending tasks :
  • Better animation up and down snakes or ladders
  • Dice Revolve or similar animation
  • Human Players
  • Config or welcome screen
  • snakes-and-ladders-design.jpg
    [Thumbnail for snakes-and-ladders-design.jpg]
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Guillermo Ishi wrote:In the Android version does the die picture change with the throw? That would be a good touch.


    You wish is my command, dice animation is complete

    Snakes and ladders animation is complete.
    You can download it from the same url. Any other suggestions ?

    For a Human player, how would you like to "throw" the Dice on the board ?

    Would you like to just "Tap" it or would you like to "Drag it somewhere and leave it" to simulate a throw ?
     
    Greenhorn
    Posts: 7
    Firefox Browser Notepad Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Very nice design and concept...
    Is it on play-store yet?
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Gisele Mariana wrote:Is it on play-store yet?


    I'll buy a playstore account once i get a positive feedback from all who have tried it. Some functionality is still pending and hence I am asking out for suggestions for the same.
     
    salvin francis
    Saloon Keeper
    Posts: 2622
    128
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Jesper de Jong wrote:and let us know when it's ready!



    It is ready now !!!
    Finally after like 3 weeks I have completed it. Thank you all for the inputs

    The apk link is the same as in my previous post. Interested folks can download and play

    The main point is that I have learned a lot from this experience.
    Any ideas for a simple board game that I can try to implement next ?
     
    30 seconds to difuse a loaf of bread ... here, use this tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic