Jump to content

PYTHON HELP PLEASE SOMEONE


rajakhan1997

Recommended Posts

We won't write it for you, but we'll help.

 

How should we represent the board? How should we represent the pieces of the two different players? Should it print a new version of the board after every move?

 

Personally, I'd go with a board being a list of lists and the pieces being either 'x's or 'o's.

 

With that as a start, what kind of functions do we need to move our pieces on the board? How Should the program tell is there are 4 like pieces in a row?

Can you translate it to English?

 

What does mean "create a connect four games in python"?

What games?

What kind of connection??

Connect Four is a children's game played with a plastic vertical lattice and checkers pieces. The players take turns putting their pieces in the lattice. The object is to get 4 of your pieces in a row (vertically, horizontally, or diagonally) while your opponent tries to stop you and get 4 of theirs in a row.

 

Sort of like tic tac toe, but with 4 in a row instead of 3 and with a gravity action pulling the pieces down.

Link to comment
Share on other sites

Connect Four is a children's game played with a plastic vertical lattice and checkers pieces. The players take turns putting their pieces in the lattice. The object is to get 4 of your pieces in a row (vertically, horizontally, or diagonally) while your opponent tries to stop you and get 4 of theirs in a row.

 

Sort of like tic tac toe, but with 4 in a row instead of 3 and with a gravity action pulling the pieces down.

Thanks.

Sounds like pretty easy to write.

We should wait and see what OP did so far in this assignment.

Somebody at University should already have pretty good programming skills..

Link to comment
Share on other sites

Thanks.

Sounds like pretty easy to write.

We should wait and see what OP did so far in this assignment.

Somebody at University should already have pretty good programming skills..

 

 

Since it is a first year project and only january I would imagine it is just text based with no ai.

Link to comment
Share on other sites

Can you show us whatever code and/or project notes that you already have for this assignment?

 

STUDYING FIRST YEAR IN UNI HAVE AN ASSIGNMENT TO GIVE IN A FEW DAYS AND NEED TO CREATE A CONNECT FOUR GAME IN PYHTON IF THERES ANYONE THAT CAN HELP ME PLEASE WOULD BE VERY GREATFUL. THANKS

A big thing to remember here is that you're modelling something. You should learn all that you can about the thing you model before you model. Maybe even play a few times.

 

When you're modelling something, you need to decide what aspects of the thing being modeled are important enough for you to include. Do we need to model that the game is made of plastic? Probably not. Do we need to model that it is a 2 dimensional grid? Probably.

 

If you've covered classes yet, modelling is a great time to show off what you know, as there are usually quite a few "has a", "is a" and "can" relationships that you can model. This project won't be terribly complicated, but using classes will show off that you know what they are and that you understand when you should use them.

 

The biggest thing is just like every program you will ever write: break it down into big chunks. Then break those chunks down as you go. And break those chunks down. Eventually, you'll get to steps small enough that they'll be manageable.

 

 

Since it is a first year project and only january I would imagine it is just text based with no ai.

The project probably just wants local multiplayer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.