Bolt-Bait, what's short circuit OR evaluation? I know what OR is but what does short-circuit OR mean? In addition, what use would a factorial function be in a card game? I just want an explanation.
Factorial would be helpful to calculate the location of the clicked card in the array of cards on the playing field. Short-circuit OR evaluation goes like this: "if X=5 or Array[5]=50 then do something"... with short-circuit evaluation, if x=5 there is no need to evaluate Array[5]=50. I'm sure you can google "short circuit evaluation" for a better explanation than I just gave. :D
I could make it deal almost instantly. But, part of the charm of the game is to watch the cards being delt out. That is part of what makes it a simulation instead of just a computer game.
Nice job. BTW I agree with what you want Scratch to have; I personally want 2-D arrays/matrices; it would make games like Tic-Tac-Toe, Connect 4, Pente, etc. so much easier to program.
Wonderful! I love the extra flair you put in with the flipping cards. I used to play this version with real cards back before computer games were available!
Pyramid Solitaire is a simple game. Click on the cards to pick them up. You can only pick a card up if it is not covered by cards below. A card can be picked up if it is one rank above or one rank below the top card of the discard pile. (Aces wrap to Kings.) If you can't pick up any cards from the pyramid, click the deck for the next card. Pick up the top card of the pyramid to win the game.
If you click the "Small" button, it will only build a small pyramid. I don't think it makes the game any easier, but you can try it if you like.
Pyramid Solitaire
Development Time: ~8 hours
Graphics done in Paint.NET
Note to the Scratch Team:
The following things would have made this project much easier...
1) a Factorial function
2) a Clear block that I could give X1,Y1-X2,Y2 coordinates to so that only that area would have been cleared.
3) Scrollwheel support for the scripts window.
4) A way to change the mouse cursor to an hour glass, hand, arrow, etc.
Comments
You need to be logged in to post comments
Add a Comment
This is really cool!!
this is so cool!
cool i love this game! :)
:0 awesomeness
Cool! You should have 3 levels of difficulty I think. Small (5 rows) Normal (6 rows) and Large (7 rows).
If I made the pyramid any smaller, it wouldn't touch the ground! :D
(view all replies)i won
Bolt-Bait, what's short circuit OR evaluation? I know what OR is but what does short-circuit OR mean? In addition, what use would a factorial function be in a card game? I just want an explanation.
Factorial would be helpful to calculate the location of the clicked card in the array of cards on the playing field. Short-circuit OR evaluation goes like this: "if X=5 or Array[5]=50 then do something"... with short-circuit evaluation, if x=5 there is no need to evaluate Array[5]=50. I'm sure you can google "short circuit evaluation" for a better explanation than I just gave. :D
this is awesome :P
i like the pattern when u win
is there any way 2 speed up the dealing?
I could make it deal almost instantly. But, part of the charm of the game is to watch the cards being delt out. That is part of what makes it a simulation instead of just a computer game.
Nice job. BTW I agree with what you want Scratch to have; I personally want 2-D arrays/matrices; it would make games like Tic-Tac-Toe, Connect 4, Pente, etc. so much easier to program.
nice!
whats the small button for though?
It is in the project notes. BTW, don't forget to click "love it".
nice job!!
If you click the "Small" button, it will only build a small pyramid. I don't think it makes the game any easier, but you can try it if you like.
Neat!
Ugh. So many times, if the last few cards from the deck had come in different order, I would win the game.
Wonderful! I love the extra flair you put in with the flipping cards. I used to play this version with real cards back before computer games were available!
hi, Paddle2See!!!
(view all replies)Wow, this is quite a hard game to play. But it's really an awesome job well done. :)
dont know how to play!and i read the description!but it sounds fun.
nice! I'm not thatt great at it though...