beaucarnes / fcc-project-tutorials

freeCodeCamp video project tutorials.
293 stars 416 forks source link

don't select all moves instead take the first appropriate move #5

Closed Pomar81 closed 7 years ago

Pomar81 commented 7 years ago

if move checked for human and move with -10 is found don't continue to find next move but remove this immediately. For AI use the same logic

beaucarnes commented 7 years ago

I would like to include this. However, I don't want to make too many changes to the code so people are not confused when watching the video. I would like to merge this code in a new directory. In the 'tictactoe' directory, create a new directory called 'improvements' and then put your code there. Also, if you want you can add the feature so players can select X or O.

Thanks for your contribution!

Pomar81 commented 7 years ago

I'm new in git. I will create directory "improvements" and copy files here I will revert my commit with change to 7/scripts.js I push change to github Will it right?

beaucarnes commented 7 years ago

Looks good. Thanks!