Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New programming course
#68
Alright, I've realised that base management needs to be later, because it would probably need variables, loops and many more things and it would be too much for a one chapter, so I moved the drawing part before the base management. I've also fixed some English errors and wrote the first sketch of the second chapter. Now excuse me for any mistakes, because I'm in hurry and really wanted to post the new version now. After we establish the general concept details, I'll finally post this plan to some Google Doc or something so you can write/modify it too.


> Chapter 1: Introduction to programming
    > Exercise 1: Boring beginnings
        > What the player will have learned after this exercise:
            * What is Colobot: Gold Edition?
            * What is SatCom? How to reopen it?
            * What is a program?
            * Why do we need programming languages?
            * Why programming is fun?
            * What is the game view?
            * How to interact with the game? (Basics of the interface and control keys)
        > The task:
            * Move the bot and the astronaut to the ???.
        > Additional notes:
            * The astronaut is selected by default. He can be controlled by the player.
    > Exercise 2: Run for your life!
        > What the player will have learned after this exercise:
            * How programming can be useful? (Sum up the stuff about programming written in the previous exercise.)
            * How to open and use the program editor?
            * How to run a program?
            * How to reset if something goes wrong?
            * Are there enemies in this game?
        > The task:
            * Kill few ???Enemies??? which are approaching to the surrounded player and the bot.
        > Additional notes:
            * The program is already written, the player only needs to start it.
            * The ???Enemies??? approach the player and attack, but both the bot and the astronaut are almost indestructible (but they gain enough damage to set a little thrilling "panick mode" in the player).
            * The astronaut is selected by default. He can be controlled by the player.
    > Exercise 3: Time to learn to drive
        > What the player will have learned after this exercise:
            * How programming can save lives? (Remind the player about the interface and previous stuff in maximum of 2 short paragraphs)
            * How to create a new program?
            * What is the structure of the program? (Note: don't go into details of the main function)
            * What are instructions and parameters?
            * How to move the bot by programming? (the move(); instruction)
        > The task:
            * Move the bot forward to the goal area.
        > Additional notes:
            * The bot is selected by default (in all the proceeding exercises).
    > Exercise 4: Reverse mode
        > What the player will have learned after this exercise:
            * How to use instructions? (Revising part)
            * Is programming about experimenting and discovery? (Hell yes!)
            * Where to find useful information? (describing the CBOT documentation briefly)
        > The task:
            * Give a gentle push to the PracticeBot behind the bot, so it "wakes up" and drive to his goal area, then move the bot to the second goal area.
        > Additional notes:
            * The player is hinted to read the documentation of the move(); function, where he learns about the use of negative numbers.
            * PracticeBot is programmed to move to the goal area when the bot comes close to him (preferably, the bot should be touching the PracticeBot for a short moment).
    > Exercise 5: The secret of good drivers is the wheel
        > What the player will have learned after this exercise:
            * Is programming about remembering stuff? (Revising part, also, hell no!)
            * What is an angle? (Revising some maths from school)
            * How to steer the robot? (the turn(); instruction)
            * What are those odd crosses on the ground? (waypoints)
        > The task:
            * Move the bot through 3 waypoints and back to the start area. (Waypoints and the area are placed so they form a square.)
        > Additional notes:
            * The player is advised to read the documentation of the turn(); function, although it is fully explained in the briefing.
            * The player needs to turn only left by 90 degrees to complete the exercise.
    > Exercise 6: Everything is relative
        > What the player will have learned after this exercise:
            * Do you need to be good at maths to be good at programming? (Revising part, also, not really)
            * What is a negative angle? (Introducing some black magic maths)
        > The task:
            * Move the bot to the goal area in slalom (by going through few waypoints).
        > Additional notes:
            * It is hinted in the briefing that the waypoints can be reached by turning by 45 (90) degrees.
    > Exercise 7: Driving license exam
        > What the player will have learned after this exercise:
            * When there will be something to shoot? (Revising part, also, soon)
            * What have been covered during this chapter? (Short summary)
        > The task:
            * Move the bot to the goal area through a simple labyrinth.
        > Additional notes:
            * A drawing of the labyrinth is in the briefing.
            * The labyrinth should be simple, but still require at least 10 instructions to complete.
            * To make it more interesting, one or two corridors should be at an angle of 45 degrees.
    > Exercise 8: Program for your life!
        > What the player will have learned after this exercise:
            * How programming can be really useful? (Revising part)
            * What have been covered during this chapter? (Short summary and congratulations for the player)
            * How to fire? (the fire(); instruction)
            * What will be covered in the next chapters?
        > The task:
            * Kill few ???Enemies??? which are approaching to the surrounded player and the bot (again).
        > Additional notes:
            * The ???Enemies??? this time do real damage.
            * The briefing gives the exact positions (angles) of the AlienAnts.
> Chapter 2: Drawing, part one
    > Exercise 1: Programming is art
        > What the player will have learned after this exercise:
            * What should he know already? (Revise Chapter 1)
            * What will be covered in this chapter?
            * Why drawing is a serious business? (Explain why this chapter necessary)
        > The task:
            * Draw a colorful square spiral of size 5x5.
        > Additional notes:
            * The program is already written.
    > Exercise 2: Every artist needs a pencil
        > What the player will have learned after this exercise:
            * What should he know already? (Revise Chapter 1 again)
            * How to draw? (the pendown(); and penup(); instructions)
        > The task:
            * Draw 3 line segments of the same length with half the length blank spaces between them.
        > Additional notes:
            * None
    > Exercise 3: Symbol of conspiracies
        > What the player will have learned after this exercise:
            * Is this chapter really necessary? (Revising part)
            * Is there always only one way to do something? (No)
            * What to do when you are stuck? (Advices about how to approach problems etc.)
        > The task:
            * Draw an equilateral triangle with each side of a different color (Black and White are forbidden).
        > Additional notes:
            * The player is given a very subtle hint to look into the documentation to find out how to change colors.
    > Exercise 4: Artists, especially programmers, are lazy
        > What the player will have learned after this exercise:
            * Is the result the only thing that matters? (Revising part)
            * What are variables?
            * Why should one use them?
            * What is a variable type? (Mention string, int and bool, focus on int)
            * How to declare a variable?
            * How to define a variable?
            * What is initialization?
            * How to use variables?
        > The task:
            * Draw 3 line segments of the same length with half the length blank spaces between them, where the length is a variable. Do this 3 times in a straight line, each time with a different length.
        > Additional notes:
            * The solution program from the exercise 2 is available, the player should modify it.
            * Any solution with more than 6 move(); instructions should be forbidden.
            * The program must be run 3 times.
    > Exercise 5: Robots can talk
        > What the player will have learned after this exercise:
            * Why variables are needed? (Revising part)
            * How to modify a variable?
            * What is debugging?
            * What is a string variable?
            * How to show a message to the player? (the message(); instruction)
        > The task:
            * Draw three squares of different sizes, each of a different color, and show a message after drawing each side which looks like that: "The side number <insert number here> of the square number <insert number here> has been drawn".
        > Additional notes:
            * Any solution with more than 4 move(); instructions should be forbidden.
    > Exercise 6: Enough of manual repeating
        > What the player will have learned after this exercise:
            * Why variables make the life easier? (Revising part)
            * What is the DRY rule?
            * What is a while loop?
            * How to use a while loop?
        > The task:
            * Draw 15 line segments of the same length with half the length blank spaces between them. Use a loop.
        > Additional notes:
            * The solution program from the exercise 2 is available.
            * Any solution with more than 2 move(); instructions or requiring to run the program more than one time should be forbidden.
    > Exercise 7: Draw, fail, repeat until success
        > What the player will have learned after this exercise:
            * How much do loops make the life easier? (Revising part)
            * What are syntax sugars? (the +=, -=, --, ++ operators)
            * Can one use a loop inside an other loop?
            * Are there any more tips about debugging?
        > The task:
            * Draw three right-angled triangles with legs of equal variable lengths, each of a different color, and show a message after drawing each side which looks like that: "The side number <insert number here> of the triangle number <insert number here> has been drawn". Use loops.
        > Additional notes:
            * The solution program from the exercise 5 is available.
            * Any solution with more than 1 move(); instruction or requiring to run the program more than one time should be forbidden.
    > Exercise 8: Art (maths) exam
        > What the player will have learned after this exercise:
            * How is programming making the life easier? (Revising part)
        > The task:
            * Draw a square spiral of size at least 5x5.
        > Additional notes:
            * Any solution works.
            * The player is given freedom in this exercise, he can just draw a minimalistic black square spiral without even using a loop or he can draw a square spiral of a bigger size with colors etc.
> Chapter 3: The basics of the base management
> Chapter 4: Drawing, part two
> Chapter 5: Shooting
> Chapter ...
[Image: XvN5CTW.png] [Image: UYXyyMS.png]


Messages In This Thread
New programming course - by krzys_h - 07-16-2015, 11:19 AM
RE: New programming course - by Simbax - 07-16-2015, 04:00 PM
RE: New programming course - by tomaszkax86 - 07-16-2015, 04:31 PM
RE: New programming course - by RaptorParkowsky - 07-17-2015, 11:31 AM
RE: New programming course - by krzys_h - 07-17-2015, 11:52 AM
RE: New programming course - by tomangelo - 07-17-2015, 11:59 AM
RE: New programming course - by RaptorParkowsky - 07-17-2015, 12:11 PM
RE: New programming course - by krzys_h - 07-25-2015, 03:56 PM
RE: New programming course - by tomangelo - 07-25-2015, 04:42 PM
RE: New programming course - by krzys_h - 07-25-2015, 04:53 PM
RE: New programming course - by RaptorParkowsky - 07-25-2015, 04:43 PM
RE: New programming course - by tomangelo - 07-25-2015, 10:49 PM
RE: New programming course - by krzys_h - 07-26-2015, 06:08 PM
RE: New programming course - by tomaszkax86 - 07-26-2015, 06:19 PM
RE: New programming course - by RaptorParkowsky - 08-02-2015, 08:54 PM
RE: New programming course - by krzys_h - 08-02-2015, 09:45 PM
RE: New programming course - by Simbax - 08-02-2015, 09:58 PM
RE: New programming course - by Emxx52 - 08-02-2015, 10:00 PM
RE: New programming course - by RaptorParkowsky - 08-02-2015, 10:13 PM
RE: New programming course - by tomangelo - 08-02-2015, 10:14 PM
RE: New programming course - by Simbax - 08-02-2015, 10:25 PM
RE: New programming course - by RaptorParkowsky - 08-02-2015, 10:36 PM
RE: New programming course - by krzys_h - 08-03-2015, 08:10 AM
RE: New programming course - by RaptorParkowsky - 08-03-2015, 10:45 AM
RE: New programming course - by Simbax - 08-05-2015, 09:24 AM
RE: New programming course - by krzys_h - 08-05-2015, 10:40 PM
RE: New programming course - by DavivaD - 09-21-2015, 09:38 PM
RE: New programming course - by krzys_h - 09-22-2015, 05:50 AM
RE: New programming course - by Mrocza - 09-25-2015, 07:35 PM
RE: New programming course - by Simbax - 09-25-2015, 08:50 PM
RE: New programming course - by Mrocza - 09-26-2015, 07:50 AM
RE: New programming course - by krzys_h - 09-26-2015, 12:51 PM
RE: New programming course - by RaptorParkowsky - 09-26-2015, 02:26 PM
RE: New programming course - by krzys_h - 09-26-2015, 04:05 PM
RE: New programming course - by Mrocza - 09-27-2015, 11:16 AM
RE: New programming course - by krzys_h - 09-27-2015, 05:59 PM
RE: New programming course - by Mrocza - 09-27-2015, 07:16 PM
RE: New programming course - by tomangelo - 09-27-2015, 07:27 PM
RE: New programming course - by krzys_h - 09-27-2015, 07:32 PM
RE: New programming course - by tomaszkax86 - 09-27-2015, 10:17 PM
RE: New programming course - by tomangelo - 09-27-2015, 10:30 PM
RE: New programming course - by Mrocza - 09-28-2015, 03:38 PM
RE: New programming course - by RaptorParkowsky - 09-28-2015, 05:01 PM
RE: New programming course - by Mrocza - 09-28-2015, 05:19 PM
RE: New programming course - by tomangelo - 09-28-2015, 05:46 PM
RE: New programming course - by Simbax - 09-28-2015, 06:56 PM
RE: New programming course - by Mrocza - 09-28-2015, 08:15 PM
RE: New programming course - by krzys_h - 09-28-2015, 08:16 PM
RE: New programming course - by Simbax - 09-28-2015, 08:30 PM
RE: New programming course - by RaptorParkowsky - 09-28-2015, 09:17 PM
RE: New programming course - by krzys_h - 09-30-2015, 05:45 PM
RE: New programming course - by krzys_h - 09-30-2015, 09:42 PM
RE: New programming course - by krzys_h - 10-04-2015, 06:42 PM
RE: New programming course - by DavivaD - 10-04-2015, 07:04 PM
RE: New programming course - by RaptorParkowsky - 10-04-2015, 07:40 PM
RE: New programming course - by krzys_h - 10-04-2015, 07:51 PM
RE: New programming course - by Simbax - 10-04-2015, 09:40 PM
RE: New programming course - by tomaszkax86 - 10-04-2015, 10:42 PM
RE: New programming course - by krzys_h - 10-05-2015, 07:20 PM
RE: New programming course - by kevinvr - 12-18-2015, 03:32 AM
RE: New programming course - by kevinvr - 12-18-2015, 01:57 PM
RE: New programming course - by Simbax - 04-07-2016, 06:36 PM
RE: New programming course - by krzys_h - 04-07-2016, 08:53 PM
RE: New programming course - by radioactivity - 04-07-2016, 09:08 PM
RE: New programming course - by Simbax - 04-07-2016, 09:23 PM
RE: New programming course - by krzys_h - 04-07-2016, 09:38 PM
RE: New programming course - by tomangelo - 04-07-2016, 10:04 PM
RE: New programming course - by Simbax - 04-08-2016, 01:20 PM
RE: New programming course - by radioactivity - 04-08-2016, 03:43 PM
RE: New programming course - by Simbax - 04-08-2016, 05:45 PM
RE: New programming course - by radioactivity - 04-08-2016, 06:20 PM
RE: New programming course - by krzys_h - 04-08-2016, 08:31 PM
RE: New programming course - by Simbax - 04-08-2016, 08:02 PM
RE: New programming course - by Simbax - 04-08-2016, 08:42 PM
RE: New programming course - by radioactivity - 04-08-2016, 08:47 PM
RE: New programming course - by radioactivity - 04-08-2016, 10:55 PM
RE: New programming course - by krzys_h - 04-09-2016, 11:30 AM
RE: New programming course - by Simbax - 04-10-2016, 05:41 PM
RE: New programming course - by krzys_h - 04-10-2016, 05:54 PM
RE: New programming course - by radioactivity - 04-10-2016, 05:52 PM
RE: New programming course - by tomaszkax86 - 04-10-2016, 07:22 PM
RE: New programming course - by radioactivity - 04-11-2016, 08:33 PM
RE: New programming course - by tomangelo - 04-11-2016, 08:55 PM
RE: New programming course - by Mrocza - 04-12-2016, 11:54 AM
RE: New programming course - by Simbax - 04-12-2016, 12:05 PM
RE: New programming course - by Mrocza - 04-12-2016, 12:24 PM
RE: New programming course - by Simbax - 04-12-2016, 01:18 PM
RE: New programming course - by radioactivity - 04-12-2016, 02:05 PM
RE: New programming course - by Simbax - 04-12-2016, 03:38 PM
RE: New programming course - by krzys_h - 04-12-2016, 08:29 PM
RE: New programming course - by tomaszkax86 - 04-12-2016, 08:07 PM
RE: New programming course - by tomangelo - 04-12-2016, 08:07 PM
RE: New programming course - by radioactivity - 04-12-2016, 08:46 PM
RE: New programming course - by tomangelo - 04-12-2016, 09:02 PM
RE: New programming course - by tomaszkax86 - 04-13-2016, 11:50 AM
RE: New programming course - by tomangelo - 04-13-2016, 01:58 PM
RE: New programming course - by tomaszkax86 - 04-13-2016, 02:25 PM
RE: New programming course - by radioactivity - 04-13-2016, 06:45 PM
RE: New programming course - by Simbax - 04-13-2016, 07:16 PM
RE: New programming course - by radioactivity - 04-13-2016, 07:50 PM
RE: New programming course - by krzys_h - 04-13-2016, 08:34 PM
RE: New programming course - by radioactivity - 04-13-2016, 08:47 PM
RE: New programming course - by tomangelo - 04-13-2016, 09:06 PM
RE: New programming course - by CHmSID - 04-13-2016, 10:00 PM
RE: New programming course - by Simbax - 04-13-2016, 10:12 PM
RE: New programming course - by CHmSID - 04-13-2016, 10:35 PM
RE: New programming course - by radioactivity - 04-13-2016, 10:55 PM
RE: New programming course - by Simbax - 04-14-2016, 07:16 AM
RE: New programming course - by Smok - 04-14-2016, 01:52 PM
RE: New programming course - by tomangelo - 04-14-2016, 01:58 PM
RE: New programming course - by DavivaD - 04-14-2016, 05:17 PM
RE: New programming course - by RaptorParkowsky - 04-15-2016, 01:52 PM
RE: New programming course - by krzys_h - 04-15-2016, 02:24 PM
RE: New programming course - by radioactivity - 04-15-2016, 03:52 PM
RE: New programming course - by tomangelo - 04-15-2016, 05:48 PM
RE: New programming course - by Karol - 07-18-2016, 10:32 AM
RE: New programming course - by Simbax - 07-18-2016, 12:26 PM
RE: New programming course - by Karol - 07-18-2016, 07:57 PM
RE: New programming course - by Simbax - 07-18-2016, 09:04 PM
RE: New programming course - by Karol - 07-18-2016, 09:59 PM
RE: New programming course - by humanoid - 09-18-2016, 02:47 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)