Calculating Horizontal Winner - Python 3 Programming Tutorial p.10
Up to this point we've been building our TicTacToe game, and now we're ready to start figuring out how we can identify winners of the game. You may be thinking "but, players can't even play yet?!?" I know I know, we will add this, but this is really one of the last steps we need. Until then, we really can develop everything easier by just hard-coding in our tests. Again, here we "know" when a winner has actually won (3 in a row horizontally, vertically, or diagonally), but how can we define this in a program?
Playlist: https://www.youtube.com/playlist?list=PLQVvvaa0QuDeAams7fkdcwOGBpGdHpXln
نظرات