Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Commit bd59de9

Browse files
committed
- Added data for new exercises
- Increased max level to 13 - Increased version to 1.5.0
1 parent 7036785 commit bd59de9

File tree

4 files changed

+163
-3
lines changed

4 files changed

+163
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "smartbeans-backend"
3-
version = "1.4.0"
3+
version = "1.5.0"
44
authors = ["Niklas Birth <[email protected]>"]
55
edition = "2018"
66
default-run = "backend"

data/task_stats.json

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,5 +798,165 @@
798798
{ "name": "MODULE", "points": 0 },
799799
{ "name": "STRUCTS", "points": 0 }
800800
]
801+
},
802+
{
803+
"taskid": 201,
804+
"shortname": "j1",
805+
"order": 410,
806+
"difficulty": "schwierig",
807+
"points": 40,
808+
"categories": [],
809+
"skills": [
810+
{ "name": "IO", "points": 0 },
811+
{ "name": "STRING", "points": 0 },
812+
{ "name": "DATA", "points": 0 },
813+
{ "name": "CONTROL", "points": 0 },
814+
{ "name": "MATH", "points": 0 },
815+
{ "name": "POINTER", "points": 0 },
816+
{ "name": "ARRAYS", "points": 0 },
817+
{ "name": "MEMORY", "points": 0 },
818+
{ "name": "MODULE", "points": 0 },
819+
{ "name": "STRUCTS", "points": 0 }
820+
]
821+
},
822+
{
823+
"taskid": 202,
824+
"shortname": "j2",
825+
"order": 420,
826+
"difficulty": "schwierig",
827+
"points": 40,
828+
"categories": [],
829+
"skills": [
830+
{ "name": "IO", "points": 0 },
831+
{ "name": "STRING", "points": 0 },
832+
{ "name": "DATA", "points": 0 },
833+
{ "name": "CONTROL", "points": 0 },
834+
{ "name": "MATH", "points": 0 },
835+
{ "name": "POINTER", "points": 0 },
836+
{ "name": "ARRAYS", "points": 0 },
837+
{ "name": "MEMORY", "points": 0 },
838+
{ "name": "MODULE", "points": 0 },
839+
{ "name": "STRUCTS", "points": 0 }
840+
]
841+
},
842+
{
843+
"taskid": 203,
844+
"shortname": "j3",
845+
"order": 430,
846+
"difficulty": "schwierig",
847+
"points": 40,
848+
"categories": [],
849+
"skills": [
850+
{ "name": "IO", "points": 0 },
851+
{ "name": "STRING", "points": 0 },
852+
{ "name": "DATA", "points": 0 },
853+
{ "name": "CONTROL", "points": 0 },
854+
{ "name": "MATH", "points": 0 },
855+
{ "name": "POINTER", "points": 0 },
856+
{ "name": "ARRAYS", "points": 0 },
857+
{ "name": "MEMORY", "points": 0 },
858+
{ "name": "MODULE", "points": 0 },
859+
{ "name": "STRUCTS", "points": 0 }
860+
]
861+
},
862+
{
863+
"taskid": 204,
864+
"shortname": "j4",
865+
"order": 440,
866+
"difficulty": "schwierig",
867+
"points": 40,
868+
"categories": [],
869+
"skills": [
870+
{ "name": "IO", "points": 0 },
871+
{ "name": "STRING", "points": 0 },
872+
{ "name": "DATA", "points": 0 },
873+
{ "name": "CONTROL", "points": 0 },
874+
{ "name": "MATH", "points": 0 },
875+
{ "name": "POINTER", "points": 0 },
876+
{ "name": "ARRAYS", "points": 0 },
877+
{ "name": "MEMORY", "points": 0 },
878+
{ "name": "MODULE", "points": 0 },
879+
{ "name": "STRUCTS", "points": 0 }
880+
]
881+
},
882+
{
883+
"taskid": 206,
884+
"shortname": "j6",
885+
"order": 460,
886+
"difficulty": "schwierig",
887+
"points": 40,
888+
"categories": [],
889+
"skills": [
890+
{ "name": "IO", "points": 0 },
891+
{ "name": "STRING", "points": 0 },
892+
{ "name": "DATA", "points": 0 },
893+
{ "name": "CONTROL", "points": 0 },
894+
{ "name": "MATH", "points": 0 },
895+
{ "name": "POINTER", "points": 0 },
896+
{ "name": "ARRAYS", "points": 0 },
897+
{ "name": "MEMORY", "points": 0 },
898+
{ "name": "MODULE", "points": 0 },
899+
{ "name": "STRUCTS", "points": 0 }
900+
]
901+
},
902+
{
903+
"taskid": 207,
904+
"shortname": "j7",
905+
"order": 470,
906+
"difficulty": "schwierig",
907+
"points": 40,
908+
"categories": [],
909+
"skills": [
910+
{ "name": "IO", "points": 0 },
911+
{ "name": "STRING", "points": 0 },
912+
{ "name": "DATA", "points": 0 },
913+
{ "name": "CONTROL", "points": 0 },
914+
{ "name": "MATH", "points": 0 },
915+
{ "name": "POINTER", "points": 0 },
916+
{ "name": "ARRAYS", "points": 0 },
917+
{ "name": "MEMORY", "points": 0 },
918+
{ "name": "MODULE", "points": 0 },
919+
{ "name": "STRUCTS", "points": 0 }
920+
]
921+
},
922+
{
923+
"taskid": 208,
924+
"shortname": "j8",
925+
"order": 480,
926+
"difficulty": "schwierig",
927+
"points": 40,
928+
"categories": [],
929+
"skills": [
930+
{ "name": "IO", "points": 0 },
931+
{ "name": "STRING", "points": 0 },
932+
{ "name": "DATA", "points": 0 },
933+
{ "name": "CONTROL", "points": 0 },
934+
{ "name": "MATH", "points": 0 },
935+
{ "name": "POINTER", "points": 0 },
936+
{ "name": "ARRAYS", "points": 0 },
937+
{ "name": "MEMORY", "points": 0 },
938+
{ "name": "MODULE", "points": 0 },
939+
{ "name": "STRUCTS", "points": 0 }
940+
]
941+
},
942+
{
943+
"taskid": 210,
944+
"shortname": "j10",
945+
"order": 500,
946+
"difficulty": "schwierig",
947+
"points": 40,
948+
"categories": [],
949+
"skills": [
950+
{ "name": "IO", "points": 0 },
951+
{ "name": "STRING", "points": 0 },
952+
{ "name": "DATA", "points": 0 },
953+
{ "name": "CONTROL", "points": 0 },
954+
{ "name": "MATH", "points": 0 },
955+
{ "name": "POINTER", "points": 0 },
956+
{ "name": "ARRAYS", "points": 0 },
957+
{ "name": "MEMORY", "points": 0 },
958+
{ "name": "MODULE", "points": 0 },
959+
{ "name": "STRUCTS", "points": 0 }
960+
]
801961
}
802962
]

src/level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::collections::HashMap;
88
use crate::static_data::TASK_STATS;
99

1010
// based on (x-1)^1.75 * 15
11-
pub static LEVELS: [u64; 13] = [100000000, 0, 15, 50, 100, 170, 250, 340, 450, 570, 700, 840, 1080];
11+
pub static LEVELS: [u64; 14] = [100000000, 0, 15, 50, 100, 170, 250, 340, 450, 570, 700, 840, 1080, 1400];
1212

1313
#[cached(time = 3600)]
1414
pub fn total_points() -> HashMap<String, u64> {

0 commit comments

Comments
 (0)