This repository has been archived by the owner on Mar 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
210 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Kary Series | ||
|
||
It's a game about mathematical sequences. In each level you will get a seqaunces like this: | ||
|
||
``` | ||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: Q U E S T I O N :::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ │ | ||
│ Level 4 = 1, 3, 7, 12, 18, 26, 35, 45, 56, 69 │ | ||
│ │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: I N P U T :::::::::::::::::::::::::::::::::::│ | ||
└─────────────┴─────────────────────────────────────────────────┘ | ||
>>> | ||
``` | ||
|
||
And then you have to write a formula for it. The systems is powered by [NCalc](http://ncalc.codeplex.com/) so you have all the power there to write exactly any kind of the formula you want. | ||
|
||
There are two parameters you can use to write your formulas with. First one is `x` that is the index number of the sequence and `p` as the value of the previous index's value. | ||
|
||
In each level if you give a bad formula Series will give you some damn good feedbacks that will help you to get closer: | ||
|
||
|
||
``` | ||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: F A I L E D :::::::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ Your formula is no match to our sequance. Here you can see │ | ||
│ the first 10 index of your evaluated formula: │ | ||
│ │ | ||
│ # │ Test Results │ Expectations │ | ||
│ ─────┼─────────────────────────┼───────────────────────────── │ | ||
│ 1 │ 1 │ 1 │ | ||
│ 2 │ 3 │ 3 │ | ||
│ 3 │ 5 │ 7 │ | ||
│ 4 │ 7 │ 12 │ | ||
│ 5 │ 9 │ 18 │ | ||
│ 6 │ 11 │ 26 │ | ||
│ 7 │ 13 │ 35 │ | ||
│ 8 │ 15 │ 45 │ | ||
│ 9 │ 17 │ 56 │ | ||
│ 10 │ 19 │ 69 │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
``` | ||
|
||
make sure you make it to see: | ||
|
||
``` | ||
┌┬────────┬─────────────────────────────────────────────────────┐ | ||
││ KARY │ │ | ||
│└────────┘ │ | ||
│ │ | ||
│ │ | ||
│ __ __ __ __ _ │ | ||
│ \ \ / / \ \ / / | | │ | ||
│ \ \_/ /__ _ _ \ \ /\ / /__ _ __ | | │ | ||
│ \ / _ \| | | | \ \/ \/ / _ \| '_ \| | │ | ||
│ | | (_) | |_| | \ /\ / (_) | | | |_| │ | ||
│ |_|\___/ \__,_| \/ \/ \___/|_| |_(_) │ | ||
│ │ | ||
│ Congratulations! You proved to be a great mater │ | ||
│ in understanding sequences! Well done, Truly! │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
``` | ||
|
||
## Thanks | ||
|
||
Thanks to Helftone for [MonoDraw](http://monodraw.helftone.com/) that I used to design the whole interface with and guys at [NCalc](ncalc.codeplex.com) because of what powers Series. | ||
|
||
## License | ||
|
||
``` | ||
Kary Series - A game of mathematical sequences | ||
Copyright (c) 2015 Pouya Kary <k@arendelle.org> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
┌┬────────┬─────────────────────────────────────────────────────┐ | ||
││ KARY │ │ | ||
│└────────┘ │ | ||
│ ___ ___ ___ ___ ___ ___ │ | ||
│ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ │ | ||
│ /::\ \ /::\ \ /::\ \ _\:\ \ /::\ \ /::\ \ │ | ||
│ /\:\:\__\ /::\:\__\ /::\:\__\ /\/::\__\ /::\:\__\ /\:\:\__\ │ | ||
│ \:\:\/__/ \:\:\/ / \;:::/ / \::/\/__/ \:\:\/ / \:\:\/__/ │ | ||
│ \::/ / \:\/ / |:\/__/ \:\__\ \:\/ / \::/ / │ | ||
│ \/__/ \/__/ \|__| \/__/ \/__/ \/__/ │ | ||
│ │ | ||
├───────────────────────────────────────────────────────────────┤ | ||
│::::::::::::::::: SEE HOW GOOD YOUR'E IN MATH :::::::::::::::│ | ||
├───────────────────────────────────────────────────────────────┤ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: Q U E S T I O N :::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: I N P U T :::::::::::::::::::::::::::::::::::│ | ||
└─────────────┴─────────────────────────────────────────────────┘ | ||
|
||
┌───────────────────────────────────────────────────────────────┐ | ||
│ PRESS ANY KEY TO CONTINIUE │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: F A I L E D :::::::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌───────────────────────────────────────────────────────────────┐ | ||
│ WELL DONE! TRULY! LET'S GO TO THE NEXT LEVEL... │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌┬────────┬─────────────────────────────────────────────────────┐ | ||
││ KARY │ │ | ||
│└────────┘ │ | ||
│ │ | ||
│ │ | ||
│ __ __ __ __ _ │ | ||
│ \ \ / / \ \ / / | | │ | ||
│ \ \_/ /__ _ _ \ \ /\ / /__ _ __ | | │ | ||
│ \ / _ \| | | | \ \/ \/ / _ \| '_ \| | │ | ||
│ | | (_) | |_| | \ /\ / (_) | | | |_| │ | ||
│ |_|\___/ \__,_| \/ \/ \___/|_| |_(_) │ | ||
│ │ | ||
│ Congratulations! You proved to be a great mater │ | ||
│ in understanding sequences! Well done, Truly! │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: I N T R O :::::::::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ Welcome to Kary Series. It's about fining the general formula │ | ||
│ of sequences. In each level you will get 10 first index of a │ | ||
│ sequence and you have to find a formula for it. For example: │ | ||
│ │ | ||
│ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 ] │ | ||
│ │ | ||
│ And then you will see a prompt like >>> which you have to │ | ||
│ your formula there. You have to use parameter `x` as your │ | ||
│ index number so the formula will be something like this: │ | ||
│ │ | ||
│ >>> x * 2 - 1 │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ | ||
|
||
┌─────────────┬─────────────────────────────────────────────────┐ | ||
│ KARY SERIES │::: I N T R O :::::::::::::::::::::::::::::::::::│ | ||
├─────────────┴─────────────────────────────────────────────────┤ | ||
│ │ | ||
│ You can get the previous index's value by using parameter │ | ||
│ `p` for example look at this sequence: │ | ||
│ │ | ||
│ [ 1, 3, 6, 10, 15, 21, 28, 36, 45, 55 ] │ | ||
│ │ | ||
│ Each index is the sum of it's previous index and it's │ | ||
│ current index number so the formula will be: │ | ||
│ │ | ||
│ >>> p + x │ | ||
│ │ | ||
│ NOTE: for the very first index `p` returns zero. │ | ||
│ │ | ||
└───────────────────────────────────────────────────────────────┘ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.