“World of C#-craft”: an Achievement-Based Classroom?
Join the DZone community and get the full member experience.Join For Free
i already briefly hinted at this: wouldn’t it be cool to integrate popular pc-game mechanics in classroom labs?
what i am proposing in this post is another way of organizing practical program labs for an audience that isn’t necessarily 100% willing to become a good programmer. teaching c# classes to undergraduates electronics-ict isn’t always easy:
- the crowd is pretty diverse: some have no programming knowledge at all, others have already written whole vb.net apps, etc.
- they aren’t all interested in the programming aspect of the studies but perhaps are more in to the electronics-part. however in the end, they will need to be proficient in both electronics and ict.
they can’t see why toying around with console-based programs is, in my opinion, a necessary evil for first-time programmers.
however, in the end, all if these students have to become proficient programmers, whether they want to or not.
having tried several approaches i don’t seem to be able to find an all-encompassing way to reach each and every last one of the students. i even tried to incorporate live voting and twitter integration in slides during lectures…an experiment with mixed results. don’t get me wrong, i’m pretty sure i’m reaching above an average number of students, but still: i want all of them to love to program ! i think i’d be a poorly ambitious teacher if my aim wasn’t to try and get a full classroom to become passionate about programming.
the idea that i propose here lingered for quiet sometime in the back of my head. being a fanatic gamer myself i am always fascinated how simple game mechanics like achievements, quests, constant feedback of the player’s progress and leveling can make any ordinary game more fun and worthwhile to play. somehow the act of earning things only a select few can reach is strangely addictive. so why not use these game mechanics in programming classes? could a simple, yet fun and addictive achievement-system that constantly gives feedback to the student on his progress, enabling him to compare his results with others enable a teacher to reach more students? could students become more motivated to do menial programming tasks (i dare anyone reading this to come up with fun programming tasks for the first few weeks, when the only thing a student knows is how to create variables and write stuff to the screen)? of course, a small side note here: this system is primarily aimed for the gray zone of students who ‘might become passionate programmers’ but who usually, in classic classrooms, grow a mild hatred towards anything containing things like i++, public static overrive int, etc. passionate students will enjoy this system as well, but they actually simply like to code, no matter the form they are learning new things…they might even think of this system as redundant.
this post is not about actually making an achievement-system that i propose. i’m merely trying to give the reader an idea of what i think might be an interesting way to organize a classroom and secondly i hope i can enable some people in actively pursuing this topic. i’m certain some of my ideas (that are far from original) can be as easily applied in any practical-oriented classroom in higher education systems.
so yes, this will be a braindump with, i hope, tiny little ideas that can grow in people’s mind. this won’t be a coherent, scientific rambling about how a classroom can be organized…i leave that to the educationists of the world. and perhaps, if i’m bored with the gazillion other programming ideas i have, i might someday write a follow-up where i actually show a real, useable application. who knows.
reality shouldn’t be broken: a bit of scientific backing
braindump or not, let’s see where my ideas actually originated and show that other, smarter, people are also thinking about this concepts of using game mechanics in non-game activities.
reading “ reality is broken ” by renowned game-designer jane mcgonical basically crystallized my thoughts on how it might be possible to make a programmers course more fun, while still being educational. mcgonical basically explains why nowadays so many people play pc games, compared to 20 years ago. her main reason being that, according to her, reality is broken. reality isn’t able to give people the same sense of happiness as games can do. it is than explored what makes games so much fun and what game mechanics keep being used throughout the gaming industry. the second part of the book than describes how to use these proven game mechanics in everyday life.
the main idea of the book is centered around philosopher’s bernard suits definition of a game:
playing a game is the voluntary attempt to overcome unnecessary obstacles.
people actually love to do hard work. completing a difficult job in game gives a high sense of satisfaction. however in real life, our obstacles are sometimes unsolvable, whereas in game you usually know they are. also, in real life we don’t choose when and what obstacles will come up. we could map suits’ definition of gaming to students who are following an higher education, namely an education they have chosen to follow. student have chosen for a certain education and choose to overcome the obstacles during the ‘game’, things like projects, exams, and trying not to fall asleep during class. so perhaps if we envisioned going to (higher) school as a game, we could break some eggs and reach students who are otherwise lost (i.e. the grey zone, mentioned earlier).
i emphasize on mapping this definition to the ‘game ‘ of higher education. i don’t think this mapping will work for basic education courses as these contains pupils that most of the time didn’t choose to be there and thus aren’t playing a voluntary game. i n higher education we should go out from the idea that students follow each course because they are interested in it and have chosen to do so themselves (yeah, a great leap of faith here j ).
mcgonical describes 4 elements that define a game, which is exactly the elements missing in most programming classes:
- it has a goal and thus creates a sense of purpose: better still, it has clearly defined, reachable goals. “becoming a good programmer” is a goal, but a pretty vague one.to say the least. programming classes should also contain clearly defined goals that aren’t too abstract for the student to apprehend. but equally important, these goals should be reachable for anyone, with only a small amount of extra effort. in other words, classes should be a succession of small goals that grow in complexity as the student grows.
- it has a feedback systems that for example can make promises to the player. the net result is then of course that the player is motivated to keep playing. imagine a popup on the students desktop from time to time telling him to “keep it up: you’ve already completed 50% of the tasks of this week”!
- clearly defined rules which unleash the creativity of the player trying to solve a problem given a set of rules. this fosters the players strategic thinking as, the more he grows attached to the rules, he will be able to solve harder and harder problems. this of course is one of the main goals of a programming class: students using the rules, such as the language syntax or a given set of program requirements, to solve tasks. getting the students to know and follow the rules is the hard part which, in my opinion, can only be thought with constant exercising, i.e. programming.
- voluntary participation is the last element that constitutes a game, as opposed to any tasks you are given at the office. games should be safe and fun, with no stress involved. players can stop at any time what they are doing with no effect whatsoever on their lives. making assignments for a programming class should be also like this. if the student doesn’t finish the task: no problem, we’re not taking away any marks. yup, grades and marks should never be a motivator in any class. unfortunately they usually are the most tangible goal for a student compared to “becoming a good programmer”. students , having already chosen to follow the programming course, need to realize they can stop ‘playing’ any time they want, with no repercussion whatsoever. external motivators (comparison with other students, etc.) should keep the student from stopping, not the penalty of lowering grades.
we can imagine several scenarios where these elements can be incorporated in a lab to make it feel more ‘game-like’. however, as mentioned in an earlier blog, it is my impression that you need to go all the way or not at all. i think i speak for many if i say that ‘educational games’ are actually less fun and even more boring than plain old ‘educational programs’. these ‘educational games’ try too hard in being a game, but in the end always fail. so i think we should tackle the problem the other way and incorporate educational things (ugly words) in to game, not vice versa. my ultimate dream would be the creation of an immersive, playable world where students walk around in with their avatar , get quests and try to solve puzzles just like any modern only mass multiplayer game such as world of warcraft (wow). the quests in this case could be small programming assignments or things that need to be solved through programming . as mcgonical explains, games like wow have really mastered the game-mechanics that make a game so fun, addictive and interesting so why try to reinvent the wheel?
i want achievements!
creating a variant to wow might be a bit farfetched. however, there’s one key game mechanic in wow, and as a matter of fact, in many other modern games, which i think can really liven up any boring or not-so-fun task: achievements.
in the excellent article by phd. researcher and game designer lucas blair, titled “the cake is not a lie: how to design effective achievements” ( part 1 , part 2 ) the author acknowledges that achievements can be used to make boring stuff more interesting:
best practice: reward players for boring tasks and give them feedback for interesting ones. make achievements for interesting tasks attentional.
i believe that students can only get through the first year of programming if they practice, practice, practice. i can tell them a whole lot of stuff, point them to very interesting books and sites and even show them the source code of gazillion programs but in the end what the student primarily needs to do is get his or hers hands dirty. i try to activate the students by giving them lots of very small programming tasks, some obligatory others not. during the course the tasks then become larger as time progresses and the students have acquired new skills. even though the tasks are not so hard , in the end they are still “boring tasks’ the student has to do in order to pass”. by rewarding the students with “in-game grades”, namely achievements, they might be triggered to solve more tasks and thus getting more hands-on experience without them being aware that they are actually learning new stuff of it.
also explained in blair’s article is how the players self-efficacy needs to be considered (i.e. “the individual’s perception about their own ability to produce a desired result for a specific task”). a common task of any lab is increasing the student’s self-efficacy and get them to become confident in solving any given problem. the student’s self-efficacy can be increased in several ways, in analogy to how these are done in games:
- create achievements the players know they reach, given a small amount of ‘extra work’.
- see how well your peers are doing.
- social persuasion by giving regular feedback on the player’ progress. for example, frequently showing a ‘keep coding, your almost there’-message on screen.
- making the student feel good, have no stress, etc.
the peer-comparison aspect (point 3) is emphasized in part 2 of the article which is summarized to the following best practice:
making earned achievements viewable to other players is a powerful incentive. to prevent players from being excluded because of their lack of experience, create achievements for players who take other players under their wing. let players display a few achievements they are proud of to increase motivation and highlight their play style.
wouldn’t it be nice if each student had their on ‘status page’ which shows all sorts of statistics (e.g. recently earned achievements, number of lines of code written, amount of errors) and be able to see how well the student performs compared to other through use of all kinds of graphs and ranking. halo 3, as explained in “reality is broken” by jane mcgonigal, is an extreme example of a ‘status page’ of a user’s achievements ( example ).
by the way , to feel the addictiveness of achievements (or better: to discover if you’re susceptible to it) try out this game which the author wrote to prove his point, found here .
so how can we make a programming course that implements an achievement system which makes a programming course fun and educational? we’ll drop the initial “world-ofc#-craft” dream for now and see what is feasible…because unfortunately i don’t have access to the blizzard development team j
in my opinion there’s several ways to introduce achievements in a programming class, ranging from easy to develop up to , in my opinion, fairly complex stuff:
- an offline achievement system not integrated in the student’s programming environment (e.g. visual studio): the teacher basically awards/unlocks achievements during class and while correcting the student’s assignments. students can then frequently check out their earned achievements.
- a semi-automatic achievement system that still is not integrated in the programming environment. this system should able to detect several typical achievements (e.g. amount of projects submitted, lines of code written) and awards these automatically. the student would need to upload his project to a dedicated service that would then parse the code-files and award achievements.
- a semi-automatic system that is integrated in the programming environment allowing to give real-time feedback of earn achievements. however, these achievements will still be of the type that is language-agnostic. the cool thing of this system is that students would ‘play’ the ‘game’ in one program, the code editor and see in real-time how they are doing compared to others.
- a full-blown, automated, language-gnostic system…or the holy grail as i might say. this system would be able to interpret anything the user does. so not only placing a breakpoint, but also interpret the code being written in order to award achievements.
the first two systems, though very straightforward to implement, have the drawback that they won’t be able to provide realtime feedback. this feedback is exactly what makes achievements works, the social persuasion and constant ‘reaching of a new (small) goal’ is what will motivate students to keep working. the third system could be ideal to motivate students to explore the power of the ide they are using (i think i’m not exaggerating if most students, and a lot of developers also i’m afraid, don’t even use 10% of what visual studio (or any other big ide for that matter) can do. a weakness of this type of ‘learning the ide’-achievements system is that it’s not helping the student in developing the primary programming skills such as typical algorithm patterns, language constructs, keywords, etc.
the holy grail of course is a system that is able to interpret the actual code being written by the student. such a language-gnostic system should be integrated in the ide in such a way that any time the students writes a statement or performs a certain action (e.g. pause a program to debug) it should be able to give feedback to the user. the type of achievements and statistics that can then be gathered is quasi endless, ranging from typical numbers-based achievements (“create 100 objects”, “place 5 breakpoints”) to more complex achievements (“compete assignment x”, “write game-of-life”). sadly, my knowledge of code parsing is quasi 0% making me the least qualified person to talk on the feasibility of a code-gnostic achievement system (some people whispered my to look at thet .net codedom stuff and the resharper api).
from a technical point of view, visual studio is ready for an itegrated achievement system. the managed extensibility framework (mef) gives programmers the power to customize about any aspect of visual studio, making it the prime target through which we can introduce the achievement system to the ide. the achievement system can then be a client-server app. any time an achievement is reached, the client notifies this to the server. this server keeps track of all the user’s progress and can also send feedback to the clients (e.g. “user x is the first one to achieve the “make 10 generic classes”, will you be the next one?’). the server could also introduce ‘world events’: short tasks that at some random time are given to all students in class. they can then choose to try and solve it or simply continue with their current tasks. the first three students to solve the world event puzzle could then receive extra achievements to brag about. the visual studio start page could also be customized: each time vs starts, the user can login to the system and immediately see his current progress, achievements and active quests, just like the halo 3 service record mentioned earlier.
visual studio ribbon hero?
the interesting thing is that there actually already exist a microsoft office plugin that pretty much does what i’m partly trying to achieve, unfortunately not for visual studio. ribbon hero is a very sweet plugin for office, written by the future-gazing people at microsoft office labs. the concept is as follows: after installing the tool, a new button is shown on the ribbons of word, excel, powerpoint and onenote. this button shows how many points you already achieved by performing certain typical actions inside the program.
by clicking the button you can review the achievements you already have and which ones you can earn, including a step-by-step learning guide for each achievement.
playing ribbon hero is both addictive (the act of gathering achievements and the ability to brag about them on facebook) and educational: i actually learned new features of word and excel using ribbon hero. it would be extremely cool if this plugin would be expanded to visual studio. although “visual studio ribbon hero” would probably be targeted on using the visual studio ide, and not so much the languages it supports, it would be a fun experience for students alike to learn and appreciate the visual studio environment.
interestingly enough, there might be a vs ribbon hero sooner than expected. in a comment to the amazingly funny article “ what if visual studio had achievements “, jeff sandquist wrote the following on january 26 th 2011:
my team creates channel 9 and coding 4 fun at microsoft.
we’ve been talking about creating an add-in for visual studio for a little while that does bring achievements to the proiduct. we love that you all love the idea too, so we’re going to go make it happen.
we’ll follow up more with specifics and look forward to getting this up and running soon with your ideas.
senior director, developer relations
so let’s wait and see what the guys from channel9 can come up with. i’m pretty sure it will be way cooler than any of my tries . if one of you at channel9 is reading this: contact me if you want my advice j .
although having the possibility to integrate achievements in my classroom would be a big achievement on itself, let’s dream even a bit harder. what if other pc-game mechanics could be integrated to create a total “world of c#-craft” environment (a propos, when visualizing the actual game environment the avatar could walk in, go for a matrix-like, 1337 hacking, grungy look…not a whimsical world of trees, elves and smiling unicorns j ) ?
what if students would be able to receive quests, i.e. programming-tasks. if they fulfill the quests they receive awards that unlocks certain aspects of visual studio allowing them to create better, more complex programs. also, by finishing quests new achievements and quests are unlocked. students can choose to ignore certain quests, but at some points they’ll be force to solve certain ones (so-called “storyline quests”) in order to proceed to the next set of quests. this is akin to leveling: each new level will basically be a new group of quests concerning a certain programmatic topic or aspect of the ide. for example: level 1 = basic usage of variables and operations; level 2= usage of methods, level 3= arrays, level 4= classes and objects, etc.
i could go on for ages on this (other ideas: integrate ability to work as a (raid)group to tackle harder problems using a tfs, restrict usage of certain ‘weapons’ (e.g. arrays, object initializers) depending on the quest, etc.) but for now, let’s see how an achievement based c# classroom can be build up and integrated in the existing labs. i’m all ears for ideas!
Published at DZone with permission of Tim Dams, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.