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: • Learn the core aspects of 2D game dev...
☕ Buy me a coffee ► https://www.buymeacoffee.com/exploreg... Support is greatly appreciated!!
💡 Code download: https://github.com/exploregamedev/Tic...
❤️ 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/@explo...
Twitter: / exploregamedev
Itch.io: https://exploregamedev.itch.io/
Facebook: / 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
Watch video Intro to Godot GameDev part 6, Adding a computer opponent for single player mode online without registration, duration hours minute second in high quality. This video was added by user ExploreGameDev 18 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 260 once and liked it 13 people.