Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
edition 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pouyakary committed Mar 25, 2015
1 parent 471e24f commit d2934fb
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 14 deletions.
Binary file added NCalc.dll
Binary file not shown.
100 changes: 100 additions & 0 deletions README.md
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 modified UI.monopic
Binary file not shown.
104 changes: 104 additions & 0 deletions UI.txt
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. │
│ │
└───────────────────────────────────────────────────────────────┘
12 changes: 6 additions & 6 deletions series.userprefs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Properties GitUserInfo="UsingGIT">
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
<MonoDevelop.Ide.Workbench ActiveDocument="series/UI.cs">
<MonoDevelop.Ide.Workspace ActiveConfiguration="Release|x86" />
<MonoDevelop.Ide.Workbench ActiveDocument="series/ArrayTools.cs">
<Files>
<File FileName="series/Program.cs" Line="23" Column="20" />
<File FileName="series/UI.cs" Line="160" Column="17" />
<File FileName="series/RunLevel.cs" Line="138" Column="6" />
<File FileName="series/Levels.cs" Line="8" Column="3" />
<File FileName="series/Program.cs" Line="28" Column="21" />
<File FileName="series/UI.cs" Line="1" Column="1" />
<File FileName="series/RunLevel.cs" Line="1" Column="1" />
<File FileName="series/Levels.cs" Line="1" Column="1" />
<File FileName="series/ArrayTools.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
Expand Down
Binary file modified series/bin/Debug/series.exe
Binary file not shown.
Binary file modified series/bin/Debug/series.exe.mdb
Binary file not shown.
8 changes: 0 additions & 8 deletions series/obj/x86/Debug/series.csproj.FilesWrittenAbsolute.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/Users/pmk/Projects/series/series/obj/x86/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs
/Users/pmk/Projects/series/series/bin/Debug/series.exe.mdb
/Users/pmk/Projects/series/series/bin/Debug/series.exe
/Users/pmk/Projects/series/series/obj/x86/Debug/series.exe
/Users/pmk/Projects/series/series/obj/x86/Debug/series.exe.mdb
/Users/pmk/Projects/series/series/bin/Debug/Mermaid.dll
/Users/pmk/Projects/series/series/bin/Debug/ArendelleNCalc.dll
/Users/pmk/Projects/series/series/bin/Debug/Antlr3.Runtime.dll
/Users/pmk/Dropbox/Document/Source Codes/KarySeries/series/obj/x86/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs
/Users/pmk/Dropbox/Document/Source Codes/KarySeries/series/bin/Debug/series.exe.mdb
/Users/pmk/Dropbox/Document/Source Codes/KarySeries/series/bin/Debug/series.exe
Expand Down
Binary file modified series/obj/x86/Debug/series.exe
Binary file not shown.
Binary file removed series/obj/x86/Debug/series.exe.mdb
Binary file not shown.

0 comments on commit d2934fb

Please sign in to comment.