Browse Source

Update Tetris tutorials

master
Trevor Slocum 2 years ago
parent
commit
aca6ebe2bb
  1. 2
      content/post/tetris-1.md
  2. 4
      content/post/tetris-2.md

2
content/post/tetris-1.md

@ -9,7 +9,7 @@ aliases: @@ -9,7 +9,7 @@ aliases:
This is the first part of a series of tutorials on creating a [terminal-based](https://en.wikipedia.org/wiki/Text-based_user_interface)
[Tetris](https://en.wikipedia.org/wiki/Tetris) clone with [Go](https://golang.org).
Code for this tutorial is available [here](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-1).
The code for this tutorial is available [on GitLab](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-1).
```bash
go get gitlab.com/tslocum/terminal-tetris-tutorial/part-1 # Download and install

4
content/post/tetris-2.md

@ -9,7 +9,7 @@ aliases: @@ -9,7 +9,7 @@ aliases:
This is the second part of a series of tutorials on creating a [terminal-based](https://en.wikipedia.org/wiki/Text-based_user_interface) [Tetris](https://en.wikipedia.org/wiki/Tetris) clone with [Go](https://golang.org).
Code for this tutorial is available [here](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-2).
The code for this tutorial is available [on GitLab](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-2).
```bash
go get gitlab.com/tslocum/terminal-tetris-tutorial/part-2 # Download and install
@ -62,7 +62,7 @@ Initially empty, tetrominos will appear just outside of view at the top of the m @@ -62,7 +62,7 @@ Initially empty, tetrominos will appear just outside of view at the top of the m
### Matrix data model
A block is an integer representing the contents of a single X-Y Point (see part 1) on the matrix.
We will use these blocks later to build tetrominos.
We will use four of these blocks to build each tetromino.
{{< highlight go >}}
type Block int

Loading…
Cancel
Save