- Use the Turtle to follow your mouse.
- Write a program to draw a tree in the GraphicsWindow.
- Write a program to input and sum 5 numbers input by a user.
- Write a program to spell check the words in a sentense (use the Dictionary object).
- Write a program to play a few lines from your national anthem (use the Sound.PlayMusic method).
Project Euler: We had some of these challenges several years ago, but here are the first 5 again.
The full set (some very hard) can be found https://projecteuler.net/archives.
- Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
- Even Fibonacci numbers
Each new term in the Fibonacci sequence is generated by adding the previous two terms.
By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
- Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
- Largest palindrome product
A palindromic number reads the same both ways.
The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
- Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest positive number that is divisible with no remainder “evenly divisible” by all of the numbers from 1 to 20?
Could we do a stickman running animation challenge?
Suggestion – Create an animated stickman that can run and jump with animated limbs reacting to key presses.
- Advanced Artificial Intelligence (AI)
This is a facinating, but pretty tough challenge by Zock77.
Check this out! It is so cool! https://www.youtube.com/watch?v=qv6UVOQ0F44
Suggestion – Perhaps create a simple Artificial Neural Net (ANN) program that can be trained to a simple task like approximating an equation curve.
- More Challenges
- Find the square root without using Math.SquareRoot (or any Math object methods if you can).
- Draw an ellipse using lines. (easy)
Or for something more challenging: Make a filled ellipse without using ellipse methods.
- Write a program to find the GCF (Greatest Common Factor) of two numbers.
By Jibba Jabba
We have a whole set of progressive graphical challenges by Jibba Jabba.
Complete these and you will be right up there!
Use a Main loop for these and try nuzzling them into game loop structure.
- Basic Motion
- Make a square shape move from left to right of screen at a constant speed.
- Using arrays, place 2 more shapes on top of this shape and have them move in tandem.
- Make a circular shape move from the top to bottom of the GW at a constant speed.
- Now make this shape move on the same path from a standing start under the influence of gravity
- Now add friction/drag to this.
- Make a shape move horizontally across the screen bouncing off the edges with constant speed.
- Make a shape bounce from top to bottom from a standing start under the influence of gravity.
- Now add friction to this. Eventually the shape should stop.
- Make a shape move randomly all over the screen at a constant speed.
- Maybe apply some acceleration to this.
- Make a shape move in a circular path around a stationary shape placed in the centre.
- Add a satellite to this orbiting body.
- Have a go at changing the orbit to an elliptical path
- Add a continuous random barrage of asteroids that respond to any collisions.
- For advanced collision model some random balls colliding into each other.
- Make a step up game where a ball bounces up a set of steps. User can move the ball left and right.
- Make a calculator. For a nice GUI check out Nonki’s website.
- Make some interesting Backgrounds. There was a recent blog on this by Nonki.
- Also make some interesting gradient backgrounds, can use RGB, Random or constant fills for this. The backgrounds don’t have to be full window. If you make them extensible they can become part of your own code library.