Skip to content

Commit 02bfec4

Browse files
committed
Add README file and update license
1 parent f517852 commit 02bfec4

5 files changed

+151
-1
lines changed

CODE_OF_CONDUCT.md

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq
77+

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 CodeMOOC
3+
Copyright (c) 2021–2022 CodeMOOC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# CodyMaze bot
2+
3+
A Telegram bot that challenges you in an “Hour of Code”-style game, with coding-based challenges that must be solved by physically moving on a full-scale chessboard.
4+
5+
![CodyMaze cover](/docs/codymaze-cover.jpg?raw=true)
6+
7+
This version of the CodyMaze bot is a porting to C#/.NET of the [original bot](https://github.com/CodeMOOC/CodyMazeBot), re-architected to work within a Docker container.
8+
9+
## Introduction
10+
11+
In the context of the recent push for modern educational tools for teachers, which aim at bringing so-called “computational thinking” to the classroom and thus encourage young children to acquire basic logical and coding skills, several different programming-based games have been developed and proposed (for instance, the web-based [Hour of Code challenge](https://hourofcode.com) on Code.org).
12+
13+
The University of Urbino has developed several tools based on messaging bots, to deliver portable, affordable, and easy to use games to teach coding in larger classrooms.
14+
The first of these initiatives is “[Code Hunting Games](http://codehunting.games)”, that allows users to create coding-based treasure hunts.
15+
16+
## The game
17+
18+
CodyMaze is a simple and portable “public square” game: it can be easily reproduced (using 9 sheets of paper and/or other objects) and installed in any larger open space, including classrooms or playgrounds.
19+
The players are guided through a dynamically generated maze: the bot will send out instructions (in the form of code snippets) that the players must follow in order to reach their destination (thus executing the code).
20+
If players successfully reach their destination and complete the maze, they will receive a completion certificate.
21+
22+
### The chessboard
23+
24+
The CodyMaze chessboard is a 5×5 grid, rows are numbered from 1 to 5, columns from A to D.
25+
The chessboard is oriented, so that players can identify 4 cardinal directions as shown in the following figure.
26+
27+
![CodyMaze chessboard](/docs/figure-chessboard.jpg?raw=true)
28+
29+
Each chessboard square is identified with a special QR Code, which allows the Telegram bot to determine in which square the player is currently located.
30+
[QR Codes must be downloaded and printed](http://codemooc.org/wp-content/uploads/2017/09/CodyMaze-QRCodes.zip) on paper sheets.
31+
The codes must be arranged as shown in the figure above.
32+
To ensure that QR Codes do not move, they can be attached to carboard boxes, tin cans, or other objects.
33+
The chessboard can optionally be drawn in chalk or using tape.
34+
35+
Some of the squares are marked by a “star icon”. 
36+
Instructions of the CodyMaze bot, in the later part of the game, will include conditional operators that depend on whether a “star” is on the square currently occupied by the player or not.
37+
38+
### Player requirements
39+
40+
Each player will have to satisfy the following requirements in order to play:
41+
42+
* A smartphone with a camera and a Telegram client (registration to the messenger service is free),
43+
* Mobile data connection or Wi-Fi,
44+
* A QR Code scanner app (built in the native camera application on many popular mobile operating systems).
45+
46+
### How to play?
47+
48+
In order to start the game, you must move to one of the chessboard’s outer squares (that is, any square on the first or last row, or on the first or last column).
49+
Scan in the QR Code you find there and follow the instructions provided by the bot.
50+
51+
At each step, the bot will **ask for your orientation** (in terms of the cardinal directions as indicated in the figure above) and will then provide you with an **instruction** to follow.
52+
The command is composed of basic instructions such as `f` for “move one step forward”, `l` for “turn left”, and `r` for “turn right”.
53+
Other, more complex, instructions such as `while`, `if`, and `else` will be used as the game progresses.
54+
Instructions blocks (indicated by braces `{}`) can be repeated: for instance, `2{fr}` is equivalent to `frfr` and means that you will have to move forward and turn right twice.
55+
56+
After executing the instructions given by the bot and arriving on a new square (which in some cases can be the same square from which you started), you must **scan the square’s QR Code**.
57+
The bot will confirm that you have reached the correct destination.
58+
If—at any point—you fail to correctly follow the instructions, the bot will tell you so and will let you move back to a previous position.
59+
60+
The game is over after **13** correctly executed instructions.
61+
62+
## Source code and contributions
63+
64+
The Telegram bot is implemented in C# and makes use of a Cloud Firestore database.
65+
The source is available under the *MIT license*. Pull requests welcome! 🙏
66+
67+
### Thanks and acknowledgments
68+
69+
* Alessandro Bogliolo
70+
* Brendan Paolini
71+
* Lorenz Cuno Klopfenstein
72+
* Saverio Delpriori
73+
* Caba Veres

docs/codymaze-cover.jpg

288 KB
Loading

docs/figure-chessboard.jpg

162 KB
Loading

0 commit comments

Comments
 (0)