Intro to Godot GameDev part 6, Adding a computer opponent for single player mode

Intro to Godot GameDev part 6, Adding a computer opponent for single player mode

ExploreGameDev

1 год назад

242 Просмотров

Thus far our TicTacToe game has been a two player game. In this lesson we refactor our code in order to support a single player mode. A very simple algorithm takes over as player two, alternating turns between it and the human player.
Here we return to unit testing with GUT. We add tests as we go to give us better confidence in the validity of our code.

This is part 6 of a 10 part series
Playlist: https://www.youtube.com/playlist?list=PL2EYHD7CRNYV57mQnRcnJNuFwZcvGVyhj

☕ Buy me a coffee ► https://www.buymeacoffee.com/exploregame.dev Support is greatly appreciated!!

💡 Code download: https://github.com/exploregamedev/TicTacToe_YoutubeSeries

❤️ Enjoyed this video? Subscribe to our channel and hit the notification bell to never miss a new video - and let us know what how-tos you'd like to see next in the comments!

-------------------------

Chapters ⌛
00:00 - Intro
00:25 - Making a plan for adding a computer opponent
02:44 - Implementing get_empty_tiles using test driven development
04:54 - Creating the computer opponent class
06:14 - Refactor game piece holder class
08:38 - Testing the game play in single and two player modes
09:08 - Outro and new lesson highlights

-------------------------

Stay connected! 🔗
Website: https://exploregame.dev
Mastodon: https://mastodon.gamedev.place/@exploregamedev
Twitter: https://twitter.com/exploregamedev
Itch.io: https://exploregamedev.itch.io/
Facebook: https://www.facebook.com/samkeen.me

—————————————————————————
My current equipment set up. Theses are some good choices if you are looking
-- Audio --
Shure MV7: https://amzn.to/3Bm0gC3
Blue Microphones boom arm: https://amzn.to/3HtYMcK
-- Video --
Sony A6400: https://amzn.to/3W6VH6v
-- Display --
Dell 27in ultrasharp 4k monitor(x2): https://amzn.to/3uGD0ed (high pixel density displays)
Quntis Computer Monitor Lamp: https://amzn.to/3iMOcDf (reduce eye strain)
-- Input --
IQUNIX A80 mechanical keyboard: https://amzn.to/3hfgUwb
Logitech MX Ergo Wireless Trackball Mouse: https://amzn.to/3YiXMOO

#godotengine #gamedev
Ссылки и html тэги не поддерживаются


Комментарии: