Question: having trouble writing these programs (IN C) int draw_card(int[]); /* Picks the first card that hasnt been drawn already, marks it as taken and returns
having trouble writing these programs (IN C)
int draw_card(int[]);
/* Picks the first card that hasnt been drawn already, marks it as taken and returns the value of the card.
Change value to -1 at the location to indicate taken
Arguments int[] deck of cards, which was created in main()
return int: value of card drawn.
int lucky_seven(int);
/*
Implements lucky seven game logic. Takes in one card value and checks if it is equal to 7.
return 1 if value matches indicating the user won, return 0 if user loses.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
