Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Danielle Stramel
- //COP 3502C-0001
- //monopoly.c
- //Due 11/02/12
- /****************************************************************************/
- /* I N C L U D E F I L E S */
- /****************************************************************************/
- #include <stdio.h>
- #include <ctype.h>
- #include <time.h>
- #include <string.h>
- #include <stdlib.h>
- /*FUNCTION PROTOTYPES*/
- struct property *Buy(int player, struct property *list);
- /*********************/
- /*GLOBAL STRUCTS******/
- struct property{
- char name[30];
- int user;
- int num_houses;
- int num_hotels;
- struct property* next;
- };
- /********************/
- int main(){
- int num_players, player=1, choice;
- struct property *list;
- printf("Welcome to the Monopoly Property Tracker!\n\n");
- printf("How many people are playing?\n");
- scanf("%d", &num_players);
- printf("Player %d, what would you like to do?\n", player);
- printf("%*d - Buy Property\n%*d - Improve Property\n%*d - Sell Property\n", 5, 1, 5, 2, 5, 3);
- printf("%*d - View Properties\n%*d - End Turn\n%*d - End Game\n", 5, 4, 5, 5, 5, 6);
- scanf("%d", &choice);
- if(choice == 1){
- }
- }
- /****************************************************************************/
- /* */
- /* FUNCTION: Buy */
- /* USAGE: enter something here */
- /* INPUT: int player, struct property* list */
- /* OUTPUT: property pointer */
- /* */
- /*========================== CHANGELOG ================================*/
- /* Author | DD/MM/YY | Description */
- /*--------------------------------------------------------------------------*/
- /****************************************************************************/
- struct property *Buy(int player, struct property *list){
- struct property *temp;
- temp = (struct property*)malloc(sizeof(struct property));
- list = temp;
- printf("What is the name of the property you would like to buy?\n");
- //scanf("%s\n", );
- //printf("%s\n", a.name);
- //&temp->user = player;
- //while();
- }
Add Comment
Please, Sign In to add comment