Logic Game

A very interesting game to play ....Requires a lot of logic.....Play with your friend or computer
Updated 17 Dec 2010

View License

Steps to follow
Though i think it is self-explanatory,read if u don't get it
-Execute game.m
-Choose to be first or second player
-Make the other computer(by clicking on the pushbutton saying human) or play with your friend
-for computer player select level by hitting the button
-hit start button
-play and enjoy:)
-You can toggle between human and computer at any time you like....be it during gameplay or in the beginning

Rules to play:
-In their respective turns,each player will choose a cell to drop ur 'token ball' in it(by clicking in a cell).If the other player is computer,it will do its job automatically.
-the selected cell cannot be already occupied by opponent's token ball.
-when a cell has sufficient no of balls such that atleast one ball will shoot in every available direction,the balls will evacuate this cell and move in all available directions.Let's call this event 'explosion'.
-in an event of explosion,the balls released will occupy the cell they travel to.
-in case the cell where a ball has come due to explosion of an adjacent cell already contains tokens of the opponent ,these tokens will get mutated to the type of ball coming in due to explosion.
-If a cell receives more number of balls than required for explosion,the extra balls will be lost

to destroy all of the opponent's token balls.
-After a player wins in a long game,wait for about 5 seconds to watch spectacular 'crazy dancing balls' all around.
-Change between human and computer player in between the game to get interesting results.
-Make both players computer and watch!
-Please send in suggestions to add more functionality
-Please let me know the name of this game if someone comes to know about it!
I found this game in a nokia mobile and tried to expand upon the concept.Though there is a wide area of possibilities ,I'll try to cover as much as I can and depending upon the response I get from the community.
Please rate,comment and post suggestions to improve upon my work.I'll try my best to update my work as per your suggestions.
Please feel free to ask if u don't get the rules of the game or if there's a doubt.Though I'm not getting any errors as per now,I request u to please report if u find any.
-----------------------------------------------------------------------------------Enjoy :)

Cite As

Mohit Gupta (2024). Logic Game (https://www.mathworks.com/matlabcentral/fileexchange/29624-logic-game), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Strategy & Logic in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Removed a bug that could sometime hang a computer-normal and computer-hard play.

-added new difficulty levels
-speed altering buttons
-made the code faster

Now one can also play with the computer....or rather watch the computer playing with itself!

Removed bugs......and included Multitasking,i.e,successive 'explosions' take place together.........TEST IT!