/cows-and-bulls

A reflexion game made with Flutter and Firebase. Available on Play store via this link :

Cows & Bulls

A Puzzle game that I made individually with Flutter and Firebase. Available on Play store via this link : This game was made for my own educational purposes. I wanted to do a project so I can put my knowladge into test and use. But thankfully it turned out to be a great game.

Game link : https://play.google.com/store/apps/details?id=omar.bulls.cows

Screenshots

Main menu screen Offline game select difficulty screen Example of offline gameplay screen
Online games lobby screen Select my number screen Example of online gameplay screen

Game rules

This is a 1v1 game where prove your intelligence. Every player chooses a 4 different digits number that doesn't start with 0. And all numbers used in this game apply to this criteria. The game is about trying to guess your opponent's number in the fastest way which means the less tries the better. The result of a played turn is a couple of digits Bulls "B" and Cows "C". Bulls are the digits that you guessed existing and are in the correct position in your opponent's number. Cows are the digits that you guessed existing but not in their correct position in your opponent's number. Don't worry about this part, the game will do all the calculations. You just have to focus and try quickly. The winner is the player who finds his opponent number first. Each round (A round is composed of 2 turns: your turn and you opponent turn) a test will be executed to see if someone won.

Win

If the result of your guess is 4 Bulls and 0 Cows you win. This means you have found his number, but you only win if he doesn't.

Loss:

If your opponent finds your own number and you don't.

Draw:

If both players find each other's numbers after the same number of rounds/turns.

Draft to help you focus :

This is an area in the bottom of your game screen where are 10 possible digits are represented with button that change color on click.

  • If the digit button color is orange it means you don't know wheather the digit exists in your opponent number or no.
  • If the digit button color is green it means you are certain that the digit exists in your opponent number.
  • If the digit button color is grey it means you are certain that the digit doesn't exist in your opponent number.

Game modes

Offline mode

No internet needed! You play against the robot, there are 3 different difficulties : Easy, Intermediate and Impossible. Easy in just easy. Intermediate is a bit harder but winnable. Impossible is just extremly hard and challenging. Robot usually wins after 3 or 4 tries. So show me what you got !

Online mode :

You need to have internet data and you have to be logged in which means you need to have your own account. By clicking "Play Online", you will be redirected to the page where you can see available rooms to join or you can create one. If you chose to create a room your should provide a name and a password for it.

Having a password is not an obligation, a room be open for anyone. If the room has a password, you need to provide the correct password to be able to join. Once both players join, they start playing until someone wins or they draw.

Quitting in mid game is considered as a loss (and can ban your account if repeated multiple times), in this case, your opponent will win. You can keep track of your scores (wins, draws and losses) in the profile section in the main menu.

Contact

If you have any questions or business opportunities or collabs; feel free to email me : omar.chaabouni.11@gmail.com or omar.chaabouni@insat.ucar.tn

Enjoy !