-- --- .-. ... . -.-. --- -.. . --. .- -- .
なぜかモールス信号を覚えようと思って作ったゲームです。
なぜC++で作ったのか謎ですが、morse.cppを適当にコンパイルすると良いです。
1行目にMAX_LENという定数がありますが、これはtrainingモードで出てくるモールス信号の長さの制限です。
最初はこれを2にして始めて、覚えたら3にして、覚えたら4にして・・・とやると覚えやすいです。
/***************** | |
* bossFight.js * | |
***************** | |
* | |
* NO FARTHER, DR. EVAL!!!! | |
* YOU WILL NOT GET OUT OF HERE ALIVE!!!! | |
* IT'S TIME YOU SEE MY TRUE FORM!!!! | |
* FACE MY ROBOT WRATH!!!!! | |
*/ |
/********************** | |
* superDrEvalBros.js * | |
********************** | |
* | |
* You're still here?! Well, Dr. Eval, let's see | |
* how well you can operate with one less dimension. | |
* | |
* Give up now. Unless you have a magic mushroom | |
* up your sleeve, it's all over. | |
*/ |
/*************** | |
* pointers.js * | |
*************** | |
* | |
* You! How are you still alive? | |
* | |
* Well, no matter. Good luck getting through this | |
* maze of rooms - you'll never see me or the Algorithm again! | |
*/ |
/************************** | |
* exceptionalCrossing.js * | |
************************** | |
* | |
* Sorry, old friend, but I'm afraid I can't share | |
* co-authorship on this paper. You've done a very | |
* good job getting this Algorithm for me. The bit | |
* with the keys was especially clever! I wouldn't | |
* have thought of it myself. But then, of course, | |
* that's why you were here in the first place. |
/* | |
* robotMaze.js | |
* | |
* The blue key is inside a labyrinth, and extracting | |
* it will not be easy. | |
* | |
* It's a good thing that you're a AI expert, or | |
* we would have to leave empty-handed. | |
*/ |
/* | |
* robotNav.js | |
* | |
* The green key is located in a slightly more | |
* complicated room. You'll need to get the robot | |
* past these obstacles. | |
*/ | |
function startLevel(map) { | |
// Hint: you can press R or 5 to "rest" and not move the |
/* | |
Objects can have the following parameters: | |
color: '#fff' by default | |
impassable: true if it blocks the player from movement (false by default) | |
onCollision: function (player, game) called when player moves over the object | |
onPickUp: function (player, game) called when player picks up the item | |
symbol: Unicode character representing the object | |
type: 'item' or null | |
*/ |
/* | |
* robotMaze.js | |
* | |
* The blue key is inside a labyrinth, and extracting | |
* it will not be easy. | |
* | |
* It's a good thing that you're a AI expert, or | |
* we would have to leave empty-handed. | |
*/ |
-- --- .-. ... . -.-. --- -.. . --. .- -- .
なぜかモールス信号を覚えようと思って作ったゲームです。
なぜC++で作ったのか謎ですが、morse.cppを適当にコンパイルすると良いです。
1行目にMAX_LENという定数がありますが、これはtrainingモードで出てくるモールス信号の長さの制限です。
最初はこれを2にして始めて、覚えたら3にして、覚えたら4にして・・・とやると覚えやすいです。
#include <stdio.h> | |
int main() | |
{ | |
char *s; | |
switch (getchar()) { | |
do { | |
case '0': | |
s = "zero"; |