Write a Puredata program to randomly choose between two outcomes with a 50-50 probability whenever a bang button is pressed. Display the output either as a number, or in words using a symbol display, or using two indicators red and green.
Use two or more slider gui objects to create a race game. On each cycle both the runners should advance a random amount forwards. Indicate the winner and stop the game.
Make a circle of bang indicators, some red, some black, behave as a roulette wheel. Make the game spin around fast to begin with and slow down. The final position should be random.
A simple desktop calculator uses a grid of twelve buttons { 0,1,2,3,4,5,6,7,8,9,+,= } Write a Puredata program using list processing operations to add up any two decimal numbers of up to 6 digits entered on the keypad. For example:
543210 + 789 =
The first number is entered, followed by the plus operation, then the second number is entered followed by the equals button. The result should be displayed in a number box.
Football results for a season of matches are stored in a colon delimited text file showing the scores for each game played. Each line of the file represents a game played and consists of four values. The first element of each line is the name of the home team. The second element is the number of goals scored. The third and fourth elements show the name of the opposing team and their score. For example:
Arsenal:1:Bolton:3:
Southampton:2:Tottenham:2:
Write a Puredata program to print the name winning team based only on average goal difference.