Browse Search Popular Register Upload Rules User list Login:
Search:
Sort Your Marbles!

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 1.45 MB

Date added: 2024-06-16

Rating: 6.8

Downloads: 8377

Views: 1451

Comments: 31

Ratings: 5

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

A very easy marble sorting game. I made this for young kids but I think that it may be challenging for some of you older kids! :lol:


Update: Lightened the background so that it's not so distracting.
Update: Removed redundant postStep code (thanks s_noonan for catching that).
Last edited at 2024/06/17 02:44:58 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: Marble Game - Game 5 - Glass Tiles (Sort of)
Rating: 5
Filesize: 112.89 kB
Downloads: 3071
Comments: 0
Ratings: 1
Date added: 2021/11/30 17:59:58
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: NEON PARTY (SORT OF 3D)
Rating: 5
Filesize: 267.42 kB
Downloads: 657
Comments: 0
Ratings: 1
Date added: 2024/06/24 06:30:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The Ultimate Marble Race Pack V1.1
Rating: 5.625
Filesize: 1.08 MB
Downloads: 6238
Comments: 13
Ratings: 2
Date added: 2019/01/31 15:40:06
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: BFDIA Marbles!!! With actual quality! 1.3
Rating: 5
Filesize: 0.72 MB
Downloads: 1650
Comments: 6
Ratings: 1
Date added: 2015/05/28 21:25:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Miracle sort
Rating: 5
Filesize: 13.15 kB
Downloads: 413
Comments: 3
Ratings: 1
Date added: 2024/12/23 20:37:47
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Some sort of 'sword'
Rating: 5
Filesize: 128.46 kB
Downloads: 424
Comments: 0
Ratings: 1
Date added: 2018/08/11 16:12:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Responses to this scene
show list
Title: Ball Sort Puzzle
Rating: 5
Filesize: 95.45 kB
Downloads: 1423
Comments: 7
Ratings: 1
Date added: 2024/06/30 01:52:44
Made with: Algodoo v2.1.0
Rating: rated 5
download
Comment page previous | 1 2 | next
Nice presentation. Easy to use. Fun to play. I found the background slightly distracting. I found the code difficult to follow. The box postStep code appears to be dead. I'm fairly certain nobody cares about the code since the scene works so well.
Thanks (I think). LOL

For what it's worth, this was right up there with the most difficult 2 or 3 scenes that I have posted over the years. I know that the code is difficult to follow (even for me) and it's because I kept changing how the scene was going to function. In other words, I did not carefully layout my design with a flow chart and pseudo-code like I normally would have done if I were still working in product development. The fact that it works even surprised ME! :lol:
The game itself is pretty straightforward. You have a bunch of marbles on the screen, and you have to sort them by color.
I think this game is a great way to spend some time. It’s simple, fun, and it can help you learn how to code.
Thanks ProfessionalSudo! :)

Concerning your comment: "...and it can help you learn how to code." I'm not so sure about that. If you read the previous comments from s_noonan and me, you would see that neither of us considers my code as being easy to follow. There are few lines of code in which even I don't recall what they do! :lol:
The reason the coding gets complicated is because it requires a state machine to track which state the scene is in (no balls selected or one ball selected).

pseudo code:
  scene.my.firstBallIsSelected := false;
  scene.my.firstBallColor = [0,0,0,0];

  scene.my.onSomeBallGetsSelected = {
    scene.my.firstBallIsSelected ? {
      scene.my.firstBallColor == colorOfBallSelected ? {
        scene.my.firstBallColumn.firstBallPos = topOfSecondBallColumn;
        scene.my.firstBallIsSelected = false;
      }:{};
    }:{
      scene.my.firstBallColor = colorOfBallSelected;
      scene.my.firstBallColumn = selectedColumn;
      scene.my.firstBallIsSelected = true;  
    };
  }
Last edited at 2024/06/16 19:02:11 by s_noonan
Quote: "The reason the coding gets complicated is because it requires a state machine to track which state the scene is in (no balls selected or one ball selected)."

I concur. You nailed it.
Solved it for the 3rd time!
Not bad, TimurChi! Let me know after you solved it for the 100th time. Then I will be totally impressed! ;)
Suggestion: Add a "New Game" button to the scene that changes the game's initial configuration so that a player can play indefinitely.

I guess they can already play indefinitely, but it might get boring.
Good idea, s_noonan! Thanks.
Hello Agin, I Have A Question, I Wanna Upload A New Scene And I Keep Getting ,,Internal Server Error''. And I Would Like To Know How To Fix It, And Upload My Scene Without Any Error.
Thanks:P
Before I can help you I need to know a few things. What version of Algodoo do you have? Also, do you use the Algodoo built-in browser for uploading and downloading scenes, or do you use a standard browser such as Chrome, Edge, or Firefox?
I Use v2.2.0 b2 Version And I Use Algodoo Built In Browser For Scenes I Think.
I Tried Everything I Could To Upload This Scene
-Uploading It From Algodoo Website On Google
-Copying Everything To The New Scene
-Making New Scenes And Uploading Them

I Tried To Do Everything But I Keep Getting Upload Error, And Im Starting To Loose Hope, This Project Took Me Alot Of Time:(
Update!:D
After Long Thinking And Deleting Some Parts Of The Map The Scene Was Published!
Sorry For Comenting Alot:/
Okay, I'm glad that you got it to work! One issue is that you should not be using the beta version (v2.2.0 b2) of Algodoo for uploading scenes. There are a few people, including me, who are testing it on their computers and reporting bugs to Algoryx, but for uploading scenes we all should still be using the latest version of Algodoo for your particular device. For Windows the latest authorized version is V2.1.0
with cotton you can do more
an excellent scene
CONGRATULATIONS:lol:
cotton??? :s
I'm sorry for that my English is bad and I used the translator to say algodoo
:bonk:
No problem! My English isn't all that great either, and I'm an American! :lol:
¡Tu ingles es mejor que mi español! :lol:
¡gracias!:)
for a long time I tried to arrange the balls into 4 pieces in a flask. I wondered why it was called an easy game. :s A child came and, after explaining, began to fill up to 5 balls and the game turned out to be easy:lol: :lol:
@s_noonan -- In regards to your suggestion: "Add a "New Game" button to the scene that changes the game's initial configuration...." I did that and I found that by creating a random configuration of marbles there is a high likelihood of randomly creating unplayable configurations! What I mean by that is, some initial configurations do not allow any legal moves. I did not run stats on it to determine how bad it is, but I believe that I can greatly improve the chances of randomly generating "legal moves" if I slightly modify the rules of the game by allowing a marble to move into an empty container. That will allow a much greater opportunity for random configurations that are playable.
Last edited at 2024/06/24 22:26:35 by Xray
Attempted to place a purple marble on container. Did not worl...
BEAT GAME
Suggestion for current and future scenes:

Publish a textureless version of the scenes alongside the textured one, so that there exists a lighter version.
I don't understand why having textures in a scene is a problem. You are the first person to mention this after more than 12 years of me posting scenes here on Algobox.
cool but, why i can't but balls in empty poles?
Yeah, that just happens to be the way I made it. I may fix that some day when I have nothing better to do.

Thanks for playing!
Comment page previous | 1 2 | next