Beginning Microsoft Small Basic - A Computer Programming Tutorial by Conrod Philip & Tylee Lou

Beginning Microsoft Small Basic - A Computer Programming Tutorial by Conrod Philip & Tylee Lou

Author:Conrod, Philip & Tylee, Lou [Conrod, Philip]
Language: eng
Format: epub
ISBN: 9781937161545
Publisher: Kidware Software LLC
Published: 2017-03-22T23:00:00+00:00


Other Things to Try

Possible changes to the Card Wars program are obvious, but not easy. One change would be to have more than two players. Set up three and four player versions. Perhaps add another loop to allow playing another game (without restarting the application).

In Card Wars, we stop the game after going through the deck one time. In the real card game of War, after the first round, the players pick up the cards they won, shuffle them, and play another round. Every time a player uses all the cards in their “hand,” they again pick up their winnings pile, reshuffle and continue playing. This continues until one player has lost all of their cards. Another change to Card Wars would be to write code that plays the game with these rules. As we said, it’s not easy. You would need to add code to keep track of which cards each player won, when they ran out of cards to play, how to reshuffle their remaining cards, and new logic to see when a game was over. Such code would use more arrays, more For loops, and more variables. If you want a programming challenge, go for it!

And, while you’re tackling challenges, here’s another. In the usual War game, when two cards have the same value - War is declared! This means each player takes three cards from their “hand” and lays them face down. Then another card is placed face up. The higher card at that time wins all 10 cards! If it’s still a tie, there’s another War. Try adding this logic to the game. You’ll need to check if a player has enough cards to wage War. Another difficult task, but give it a try if you feel adventurous.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Adventures In Raspberry Pi by Philbin Carrie Anne(654)
Python for Kids by Jason R. Briggs(635)
Scratch For Kids For Dummies by Derek Breen(598)
Coding for Kids in Python: Create Your First Game with Python by Ellen Tale(514)
Learn Coding: Python, Java, PHP Complete Guide, and Other of the Most Recommended Programming Languages for Beginners in use Today by Wired Tim(447)
Star Wars Coding Projects by Jon Woodcock(446)
Coding for Kids: Beginners Guide with Fun and Easy Activities to Learn Coding Step by Step by Weber Simon(434)
Writing Computer Code by Chris Minnick & Eva Holland(422)
Coding for Kids: Scratch: Fun & Easy Step-by-Step Visual Guide to Building Your First 10 Projects (Great for 7+ year olds!) by Nathan Jobs(371)
C++ and Algorithmic Thinking for the Complete Beginner: Learn to Think Like a Programmer (Part 1 of 5) by Aristides Bouras & Loukia Ainarozidou(339)
Kids Learning Javascript: Kids learn coding like playing games by Yang Hu(332)
Coding Animation and Games with Scratch: A beginner’s guide for kids to creating animations, games and coding, using the Scratch computer language by Zako & Mukherjee Sumita(317)
Coding for Kids in Scratch Python - 2 Books in 1 -: Create Your First Games by Tale Ellen(282)
Beginning Microsoft Small Basic - A Computer Programming Tutorial by Conrod Philip & Tylee Lou(276)
Python for Kids: The New Step-by-Step Parent-Friendly Programming Guide With Detailed Installation Instructions. To Stimulate Your Kid With Awesome Games, Activities And Coding Projects by Deep Raymond(240)
Coding for Kids: Scratch 3: A Step by Step Visual Guide for Beginners to Learn How to Code with Guided Activities and Build Your Own Computer Games(Includes 25 Coding Challenges With Keys) by Raymond Deep(239)
Can You Crack the Code? by Ella Schwartz(198)