Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Monday, November 19, 2018

Tic Tac Toe - ALICE Program

Tic Tac Toe Game


2 player traditional tic tac toe game in Alice. Play the classic game of X's and O's
Each player takes turn to play this game. 

Solution:
Tic Tac Toe game in a grid of 3x3.
Each player takes turn to play X or O and at the end there is a congratulatory message at the end.

See the attached video created using Alice 2.4 for this program using the actual source code.

Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.

Whack A Mole - ALICE Program

Whack A Mole



 In this game, the player picks up a hammer and whacks at a mole-like puppet that pops up here and there out of a box. Points are scored each time the player whacks a mole. 
One possible modification to the WhackAMole game is to play it until the user has whacked all of the moles. To make this adjustment, change the color of a mole in the list to red whenever it is whacked. Allow the mole to be raised only if it is not already red. The game ends when all moles have been whacked!

Solution:
The user moves the mouse to click (or whack) on the mole that pops up. Every time a mole is whacked, there is a pop sound effect. The mole that has been whacked changes its color to red. The score of the user is tracked by the yellow cylinder, which keeps increasing when the user whacks a mole successfully. It is made sure that no red mole ever pops up.
Once the user has whacked all the moles, a congratulatory message is displayed.

See the attached video created using Alice 2.4 for this program using the actual source code.



Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.

Friday, December 2, 2016

Room Remodel - ALICE Program

Room Remodel

Sometimes the hardest decision to make when repainting a room is choosing the color. Create a world that helps a person decide what color they should choose for their walls and carpeting. Make a room scene by using three squares (SHAPES) as the wall and add furniture (Furniture) to it. To get the look and feel of carpeting, add the moonSurface (Space) and use its texture for the floor. Create a list named wallColor (a list of type Color) and add five colors to the list. Create a second list of colors name floorColors and add five colors to the list. Use nested For all loops with the lists to show every possible combination for the wall and floor colors. Use a wait statement to allow the viewer to see a color combination a couple second before showing the next color combination


Wednesday, July 20, 2016

Pop the Balloon - ALICE program

Game: Pop the Balloon

This exercise builds on Project 5 from Chapter 6, the Random Sphere Catch Game. If you have already created the world for that project, you can add five additional spheres and then write the code for this exercise. If you did not previously create the world for the Random Sphere Catch Game, begin this exercise by first creating the game from Project 5 in Chapter 6. The moveAroundRandomly, disappear, and startGame methods should work as described in that project. In this new version of the game, you will use a list to make the code less complex and easier to understand. First, create a world-level list named spheres and add each of the 10 sphere objects to the list. Modify the startGame method to use a For all together to move around randomly all of the spheres in the list. When the mouse is clicked on anything call the disappear method. Modify the disappear method to use a For all in order to check if the item that was clicked was a sphere. If so, make it disappear. You may drop the smoke animation for this exercise, if you wish.

Chapter-9 Learning to program with alice

Solution:
In this game, the balloon pops when user clicks on it and this version of the game includes the smoke animation as well.
Below is the video for this Alice program, created using Alice 2.3



Contact me for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code.


Bumper Cars - ALICE program


Bumper Cars

Create a simulation of the bumper car ride (Amusement Park), where the cars move continuously around within the bumper arena. Add two bumper cars inside the arena. In this animation, each car should be moving forward a small amount until it gets too close to another car or to the wall, then turn the car a quarter of a revolution clockwise (to get a different direction) and continue moving forward. Use a switch (Controls) to stop and start the ride. As long as the switch is on, the ride should continue.

Chapter 7 Learning to Program with ALICE

Hint: To create new bumperCar objects, select one of the bumperCar objects in the object tree and then click on the copy icon in the mouse control palette. Be sure to click on the white arrow mouse control icon when finished creating copies (to turn off copy). To avoid a car driving through a wall of the arena, a simple form of collision detection is needed. One way to check for a possible collision is to use the distance to function to compute the distance of the car to the arena. Remember that distance to is measured “center-to-center.” In this world, a measurement from the center of the car to the center of the arena is= exactly what you need. (When a car gets too far from the center of the arena, it will collide with a wall.) It is also possible to write a function that returns whether two cars are about to collide with one another. What should be done in this case?



Here is the video of this ALICE program created using ALICE 2.3


Contact me for comprehensive step-by-step guide to create this ALICE program as well as the complete source code.

Monday, June 6, 2016

Blimp and Dragon - ALICE program


Blimp and Dragon


Create a scene as shown below with a blimp (Vehicle) and a dragon (Medieval). In this fantasy scene, the dragon has found a blimp and is curious. The dragon flies around the blimp to check it out. Write a program to have the dragon move to the blimp and then fly around it (lengthwise) three times.

Chapter 3 Learning to Program with ALICE


Solution:
Attached below is the video of ALICE program created using ALICE 2.3


Contact me for comprehensive step-by-step guide to create this ALICE program as well as the complete source code.