Discuss Scratch

Za-Chary
Scratcher
1000+ posts

Please make a 2 player tic-tac-toe starter project

endyourenite wrote:

But it also requires ‘lists’ for all the possible wins for X and O
Nah, you could totally avoid lists if you only used variables.
endyourenite
Scratcher
100+ posts

Please make a 2 player tic-tac-toe starter project

Za-Chary wrote:

endyourenite wrote:

But it also requires ‘lists’ for all the possible wins for X and O
Nah, you could totally avoid lists if you only used variables.
prove it
Za-Chary
Scratcher
1000+ posts

Please make a 2 player tic-tac-toe starter project

endyourenite wrote:

prove it
Gladly. Give me 15 minutes or so.
Za-Chary
Scratcher
1000+ posts

Please make a 2 player tic-tac-toe starter project

Za-Chary wrote:

endyourenite wrote:

prove it
Gladly. Give me 15 minutes or so.
Alright, here you go: https://scratch.mit.edu/projects/1055677434/

This is a basic Tic-Tac-Toe game that uses 2 variables, 0 lists, and 0 clones. Comments are inside the project to help beginner programmers understand the code. I coded it in about 1 hour, which is probably what I would expect from someone following a tutorial; of course, remixing would take significantly less time. The programming is not necessarily the most “efficient,” but the goal here was to make a project that is easy to understand and easy to remix. This project probably should not be someone's “first” tutorial, but it is a good project that serves as a tutorial for those who have played around with Scratch for a bit and can start making their own basic creations.

I sacrificed the sprite count: there are 10 sprites, 9 of which represent the spaces that you put X's or O's in. I felt that this was necessary to make the easiest-to-understand Tic-Tac-Toe game. I disagree with the earlier opinion that having lots of sprites is enough to not have a certain starter/tutorial project. In this case, these 9 sprites are all nearly identical, and copy-and-pasting one costume into 9 sprites is not difficult. It may be “tedious” to some (I argue it actually isn't), but either way, remixing is not necessarily supposed to be quick. The main point is that this project is easy to remix (remember, “easy” could still mean “tedious”).

You could use clones instead if you're really worried about the sprite count — and that's how I started coding this — but I worried that clones would make the project too complicated for a starter/tutorial project.

Last edited by Za-Chary (Aug. 14, 2024 16:04:03)

endyourenite
Scratcher
100+ posts

Please make a 2 player tic-tac-toe starter project

Za-Chary wrote:

Za-Chary wrote:

endyourenite wrote:

prove it
Gladly. Give me 15 minutes or so.
Alright, here you go: https://scratch.mit.edu/projects/1055677434/

This is a basic Tic-Tac-Toe game that uses 2 variables, 0 lists, and 0 clones. Comments are inside the project to help beginner programmers understand the code. I coded it in about 1 hour, which is probably what I would expect from someone following a tutorial; of course, remixing would take significantly less time. The programming is not necessarily the most “efficient,” but the goal here was to make a project that is easy to understand and easy to remix. This project probably should not be someone's “first” tutorial, but it is a good project that serves as a tutorial for those who have played around with Scratch for a bit and can start making their own basic creations.

I sacrificed the sprite count: there are 10 sprites, 9 of which represent the spaces that you put X's or O's in. I felt that this was necessary to make the easiest-to-understand Tic-Tac-Toe game. I disagree with the earlier opinion that having lots of sprites is enough to not have a certain starter/tutorial project. In this case, these 9 sprites are all nearly identical, and copy-and-pasting one costume into 9 sprites is not difficult. It may be “tedious” to some (I argue it actually isn't), but either way, remixing is not necessarily supposed to be quick. The main point is that this project is easy to remix (remember, “easy” could still mean “tedious”).

You could use clones instead if you're really worried about the sprite count — and that's how I started coding this — but I worried that clones would make the project too complicated for a starter/tutorial project.
Even though it has so many scripts, It does look simple. So yeah.
cinnamonrollLoves
Scratcher
8 posts

Please make a 2 player tic-tac-toe starter project

how can you make tic tac toe in need to know plz
when green flag clicked
play sound [ v]
Bura082
Scratcher
42 posts

Please make a 2 player tic-tac-toe starter project

This is not a suggestion
Bura082
Scratcher
42 posts

Please make a 2 player tic-tac-toe starter project

You need to write this on https://scratch.mit.edu/discuss/9/
Scratch_Cat_Coder8
Scratcher
1000+ posts

Please make a 2 player tic-tac-toe starter project

Bura082 wrote:

This is not a suggestion

Bura082 wrote:

You need to write this on https://scratch.mit.edu/discuss/9/
No, this is a suggestion, it’s a suggestion for the ST to make a tic-tac-toe starter project for the Ideas page (possibly to introduce new scratchers to more complex projects)

I do support this suggestion though, as somebody said prior that the project in this suggestion could be used for people to customize the game and my own reason is that this could introduce newer scratchers to more complex games without being so massive.
M1mikyu
Scratcher
1000+ posts

Please make a 2 player tic-tac-toe starter project

I think this would be a very useful way to explain to beginners how clones, variables, etc work in the form of a very popular game that would be easy to understand. Def support! I also think the Ideas page needs more projects anyway

Powered by DjangoBB