Intro to Godot GameDev part 4, Adding player turn management

Published: 09 July 2022
on channel: ExploreGameDev
836
23

In this part 3 of the Godot 2D Tic Tac Toe game, you will add turn management between player one and player two. This will be implemented with a process called Test Driven Development, or TDD. You will create the test first for the needed functionality. Then you will write just enough code to pass the failing test. At the end of this lesson, the game loop will alternate allowing first player one to place a piece, then player two; continuing this alternation until there is a win or a tie.

This is part 4 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:40 - Define desired player turn functionality
01:38 - Extract GamePieceHolder class
04:50 - Introduction to Test Driven Development
06:10 - Writing code to pass first test
07:25 - Writing test for game piece locking
08:05 - Refactor to pass game piece locking test
08:35 - Refactoring with tests in place
10:45 - Adding active/inactive visual cue
11:15 - Writing test to check for tie games
11:55 - Using Test First methodology to implement tie game detection
13:43 - Outro

Test driven development image: https://en.wikipedia.org/wiki/Test-dr...

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

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 #godot


Watch video Intro to Godot GameDev part 4, Adding player turn management online without registration, duration hours minute second in high quality. This video was added by user ExploreGameDev 09 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 836 once and liked it 23 people.