# Error (Board Game Help PLEASE)

**URL:** https://forum.makecode.com/t/error-board-game-help-please/28293
**Category:** Help
**Created:** [April 17, 2024, 6:16pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293 "2024-04-17T18:16:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Earth](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Earth](https://forum.makecode.com/u/Earth)
#### Post date: [April 17, 2024, 6:16pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/1 "2024-04-17T18:16:44Z")

</div>

You see I have to make a board game for school project but it says an error:

Program Error: Cannot read properties of undefined (reading ‘\_width’)

IDK what to do can someone please help fast  
Here is the link anyway please help fast though

> **[English Board Game!](https://arcade.makecode.com/S47737-32624-54022-17684)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)
#### Post date: [April 18, 2024, 12:52pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/2 "2024-04-18T12:52:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bda6b613380c5e8fc65552481ab41505894eaacb.png)  
The problem seems to be with the block where you set `Current player number` to a value from an array that isn’t a number.

---

<div class="post-metadata">

### Author: ![Earth](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Earth](https://forum.makecode.com/u/Earth)
#### Post date: [April 18, 2024, 1:02pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/3 "2024-04-18T13:02:46Z")

</div>

@richard can you please help me?

---

<div class="post-metadata">

### Author: ![soren\_lorenson](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soren\_lorenson](https://forum.makecode.com/u/soren_lorenson)
#### Post date: [April 18, 2024, 4:14pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/4 "2024-04-18T16:14:52Z")

</div>

I SUMMON @richard TO HELP @Earth

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 18, 2024, 4:37pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/5 "2024-04-18T16:37:11Z")

</div>

@Earth as @Blobbey mentioned, I think you want to remove the second “set current player number to” block. Doesn’t look like the list array is ever assigned

---

<div class="post-metadata">

### Author: ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)
#### Post date: [April 18, 2024, 4:59pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/6 "2024-04-18T16:59:06Z")

</div>

I’m not sure what the block was supposed to do, but if you take it out, the game works fine.

> **[English Board Game!](https://arcade.makecode.com/S59844-58563-39512-13853)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![Earth](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Earth](https://forum.makecode.com/u/Earth)
#### Post date: [April 23, 2024, 4:02am UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/7 "2024-04-23T04:02:43Z")

</div>

@richard another problem…  
don’t know if u remember bout the board game live stream on your channel but I am trying to do that and there is another “error” check the board game and here is the script error.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/1f7079459861a3b017d4a8fc7bf2f54a2dc27e12.png)

> **[English Board Game!](https://arcade.makecode.com/S47737-32624-54022-17684)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [April 23, 2024, 7:31pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/8 "2024-04-23T19:31:24Z")

</div>

@Earth the right side of your `=` expression is using a string block, not a number. Try dragging a number block out of the math category and putting it on top of the “0”

---

<div class="post-metadata">

### Author: ![Earth](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Earth](https://forum.makecode.com/u/Earth)
#### Post date: [April 28, 2024, 2:34pm UTC](https://forum.makecode.com/t/error-board-game-help-please/28293/9 "2024-04-28T14:34:34Z")

</div>

one more problem. ALL THE PLAYERS ARE MOVING OUT OF PLACE…wut am I supposed to do somone help me TvT
