# Poker solitaire

**URL:** https://forum.makecode.com/t/poker-solitaire/5322
**Category:** Show & Tell
**Tags:** game
**Created:** [January 3, 2021, 4:32pm UTC](https://forum.makecode.com/t/poker-solitaire/5322 "2021-01-03T16:32:11Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [January 3, 2021, 4:32pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/1 "2021-01-03T16:32:11Z")

</div>

This is my second game.  
This is a one-player poker game where you place cards and cards in 5x5 squares and get points for roles in the vertical, horizontal, and diagonal directions.  
This time my challenge is to implement the cursor and complex algorithms.  
I found that when implementing complex processes, it is easier to implement the JavaScript directly instead of in blocks.

> **[Poker solitaire](https://arcade.makecode.com/86541-39425-62104-28623)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [January 3, 2021, 5:36pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/2 "2021-01-03T17:36:56Z")

</div>

If it does not change from the loading screen, click ‘Show Code’ and then click on the simulator.  
I don’t know why it won’t go from the loading screen.  
The game is implemented in JavaScript, so switching to blocks changes the scope of the variables and causes an error.  
Please refer to JavaScript for the source.

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [January 4, 2021, 4:54pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/3 "2021-01-04T16:54:13Z")

</div>

Successfully recreated the javascript-only project.  
Fixed the problem of simulations not progressing from the loading screen.  
Support for displaying hand information.

> **[Poker solitaire](https://arcade.makecode.com/40166-58714-74000-36960)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Please try to play it.

---

<div class="post-metadata">

### Author: ![ImaAngryBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imaangrybear/32/3834_2.png) [@ImaAngryBear](https://forum.makecode.com/u/ImaAngryBear)
#### Post date: [April 12, 2021, 2:59pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/4 "2021-04-12T14:59:43Z")

</div>

OMG this game is AWESOME and SO ADDICTIVE and I JUST CAN"T STOP PLAYING

![Screenshot 2021-04-11 7.17.29 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e0c7bec98504323ecf4b958931a40370d54e3a77.png)

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [April 18, 2021, 2:29am UTC](https://forum.makecode.com/t/poker-solitaire/5322/5 "2021-04-18T02:29:49Z")

</div>

Thank you so much for playing this game. I’m glad for your message.  
I’ve released the latest version on Github if you want to give it a try.

> **[poker-solitaire](https://shiba-jp.github.io/poker-solitaire/)**
>
> A MakeCode project

---

<div class="post-metadata">

### Author: ![edubsky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/edubsky/32/2132_2.png) [@edubsky](https://forum.makecode.com/u/edubsky)
#### Post date: [April 25, 2021, 4:43pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/6 "2021-04-25T16:43:29Z")

</div>

Wow that’s a fantastic game – well done!

This version also works on my meowbit (the earlier version caused a memory error for me, just when it should display the ‘game over’ screen)

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [April 25, 2021, 11:56pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/7 "2021-04-25T23:56:26Z")

</div>

Thank you for playing my game.  
You are right, the previous version had performance problems.  
In the previous version, all cards were drawn in Sprite and the object was retained until the end of the game.  
It could work on high performance browsers such as Ipad, but it was running out of memory on hardware such as the Mewbit you have.  
The latest version solves the memory problem by writing the Sprite image directly to the background image after placing the card on the board, and then destroying the Sprite object.  
This technique is also applied in the next game I made.

> **[battleship](https://shiba-jp.github.io/battleship/)**
>
> A MakeCode project

---

<div class="post-metadata">

### Author: ![jackal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jackal/32/19506_2.png) [@jackal](https://forum.makecode.com/u/jackal)
#### Post date: [December 20, 2021, 5:55pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/8 "2021-12-20T17:55:19Z")

</div>

this needs to go on the community games page

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [December 27, 2021, 7:18pm UTC](https://forum.makecode.com/t/poker-solitaire/5322/9 "2021-12-27T19:18:53Z")

</div>

> [@jackal](#):
>
> community games page

What is the community games page?
