Skip to content

pratibhadixit549/Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projects

Simple Chatty Bot

Here, in this is the easiest project.Creating a simple comsole chat cot will do wonders to guide ypu through the basics of coding and project making.

During this journey you will also play some word and number games that you are going to implemeny to your bot.

Your Simple Chatty Bot must chat like:

Hello! My name is Aid.
I was created in 2018.
Please, remind me oyur name.
->Max
What a great name you have, Max!
Let me guess your age.
Say me reminders of dividing your age by 3, 5 and 7.
->1 2 1
Your age is 22: that's a good time to start programming!
Now, I will proove to you that I can count to any number you want.
->3
0!
1!
2!
3!
Let's test oyur programming knowledge.
Why do we use methods?
1. To repeat a statement multiple times.
2. To determine a program into several small subroutines.
3.To determine the execution time of a program.
4. To interrupt the execution of a program.
->4
Please, try again.
2
Congratulations, have a nice day!

Coffee Machine

What can be better than a cup of coffee during a break? A coffee that you don't have to make yourself. It's enough to press a couple of buttons on the machine and you get a cup of energy; but first, we should teach the machine how to do it.

In this project, you will see working of a coffee machine simulator. The machine works with typical products: coffee, milk, sugar, and plastic cups; if it runs out of something, it shows a notification.You can get three types of coffee: espresso, cappucino and latte. Since, nothing's for free, it also collects the money

Your Coffee Machine Simulator must work as:

Write action (buy, fill, take, remaining, exit): remaining

The coffee machine has:
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappucino: 2
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappucino: 2
Sorry, noy enough water!

Write action (buy, fill, take, remaining, exit): exit

Tic-Tac-Toe

Everybody remembers this paper-and-pencil game from childhood: Tic-Tac-Toe, also known as Noughts and crosses or Xs and Os.

A single mistake usually costs you the game, but thankfully it is simple enough that most players discover the best stratergy quickly.

Your Tic-Tac-Toe will be played on console as:

Welcome to 2 Player Tic Tac Toe.
--------------------------------
/---|---|---\
| 1 | 2 | 3 |
|-----------|
| 4 | 5 | 6 |
|-----------|
| 7 | 8 | 9 |
/---|---|---\
X's will play first. Enter a slot number to place X in:
1
/---|---|---\
| X | 2 | 3 |
|-----------|
| 4 | 5 | 6 |
|-----------|
| 7 | 8 | 9 |
/---|---|---\
O's turn; enter a slot number to place O in:
9
/---|---|---\
| X | 2 | 3 |
|-----------|
| 4 | 5 | 6 |
|-----------|
| 7 | 8 | O |
/---|---|---\
X's turn; enter a slot number to place X in:
7
/---|---|---\
| X | 2 | 3 |
|-----------|
| 4 | 5 | 6 |
|-----------|
| X | 8 | O |
/---|---|---\
O's turn; enter a slot number to place O in:
5
/---|---|---\
| X | 2 | 3 |
|-----------|
| 4 | O | 6 |
|-----------|
| X | 8 | O |
/---|---|---\
X's turn; enter a slot number to place X in:
4
/---|---|---\
| X | 2 | 3 |
|-----------|
| X | O | 6 |
|-----------|
| X | 8 | O |
/---|---|---\
Congratulations! X's have won! Thanks for playing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages