Загрузка...

Become a Go Game Developer in 97 Seconds - Full Programming Course

Learn to use the Go programming language in this tutorial. Go is used for game development almost never. That just means it is easier to become one of the world's best Go game developers.

Code: https://replit.com/@zizyo/go-word-game

Thanks to Replit for sponsoring this video! You can find their YouTube channel here: https://www.youtube.com/c/replityt

Inspired by (but heavily optimized): https://github.com/MahmudX/word-guessing-game

0:00 Intro to Go
0:08 Sponsor message
0:11 Setting up development environment
0:14 package main, import, and func main
0:21 Importing additional package
0:24 Creating global variable
0:27 init function
0:30 Initializing an array of strings
0:38 Beginning main function
0:40 Creating game loop and displaying game score
0:45 Assigning variables from function
0:51 The := operator
0:54 Displaying word to guess
0:58 Creating getWord function
1:05 Getting random value from array
1:10 Creating masked word
1:14 Returning values from function
1:17 Getting input from user
1:23 Checking for win condition
1:26 Displaying correct answer on loss
1:30 Testing the game
1:33 Conclusion

Видео Become a Go Game Developer in 97 Seconds - Full Programming Course канала Beau Carnes
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять