> For the complete documentation index, see [llms.txt](https://computational-thinking-in-room11.gitbook.io/room-112-dhs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://computational-thinking-in-room11.gitbook.io/room-112-dhs/computer-exploration/truchet-tiles.md).

# Truchet Tiles

{% embed url="<https://somup.com/c0ftor4CNq>" %}

You will be workig in scratch - but just this once to make something kinda cool

<figure><img src="https://lh4.googleusercontent.com/TVo-Iikxw6I28Maibq2cqcQk-WY5mnsaIi6YzuaY7qFAwlxlGzoBVwK-R2UO3GwdV96AfzeMKNtXxtvZDRSRJPFRf2K6IFFz85h3r8WA856Gqb4cXFg1CQivTVEHFlWV8SRTyenrSf7qRu0AebFfAj9KYQ=s2048" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/qb6hdDqe-nrO4dt6N_NMgErmTwgE-6RIumf-hYZaDC5YGVA6EtL7U0mIMAQGz1aqyHFT8aBL_HfkjZbNVWy7mDHVdPP56dp1M-tpW2nSVlzF3LbPEOMofiAKIEERarYmRvmRZxhD5gH_5PksMwTepldC0A=s2048" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/A3BNPc9Z8kvI04x55H27" alt=""><figcaption></figcaption></figure>

&#x20;Move your sprite to the top left hand corner of the stage and now we need to write some code

<figure><img src="/files/XzWcTLosfALHt1vhMWMz" alt=""><figcaption></figcaption></figure>

```
When the green flag is clicked
    set drag mode to not draggable
    point in direction 90
```

<figure><img src="/files/9gwFKUnzxkPomGxTP9LJ" alt=""><figcaption></figcaption></figure>

```
When this sprite is clicked
    turn right 90 degrees 
```

test your code - when you click the tile does it rotate?&#x20;

Now the not so fun part duplicate your sprite and move it to line up to the right of your first sprite

<figure><img src="/files/BrqG1rIlXWUghCPsaTkK" alt=""><figcaption></figcaption></figure>

Then repeat this to fill your stage with at least five rows and five columns (depending on the size of your sprite you may need more) - the goal is to basically fil your stage without making your self crazy. There should be no white space between the tiles

<figure><img src="/files/LYgQJFfyHjgwJgh18SMF" alt=""><figcaption></figcaption></figure>
