Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter



Simulate a game


Posted Date: 07 Feb 2008    Resource Type: News/Announcements    Category: Exams Announcements

Posted By: satish       Member Level: Gold
Rating:     Points: 3





Question 1. Simulate a game with following attributes. The game consists of a board which can be of any dimensions. There are n (0
The board can be moved in four directions, up, down, left and right, there by moving all the coins one block in that direction. There are n holes in the board which are again with the corresponding number on them. The aim of the game is to successfully drop all the coins in the corresponding hole of the board.

Initial position of the coins is the left most column of the corresponding numbered row.

Input of the program should be :

Dimensions of the board.
Number of coins.
Position of the holes.
Output of the program should be

Whether the above path (of putting every coin in the corresponding hole) is possible or not.
An example arrangement of the board can be :



C1








C2




H2



C3








C4


H1


H4















H3































Question 2. Add following attributes to the above program :

a. Trace the path which leads to success in the game.

b. Let the user play the game and indicate after every move the status of the game.(Preferably use graphics). Give user only the combination which has a successful result.




Responses

Author: Vidya    23 May 2008Member Level: Diamond   Points : 2
gud one


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: MHT-CET-2008 (Maharashtra -Common Entrance Test)
Previous Resource: MCA entrance 2008
Return to Discussion Resource Index
Post New Resource
Category: Exams Announcements


Post resources and earn money!
 
Related Resources


Contact Us    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.