From 3dc0b31c3d8e5e9cb52711f8158c35ce9c932c3b Mon Sep 17 00:00:00 2001 From: Kcunningham20 <31940556+Kcunningham20@users.noreply.github.com> Date: Tue, 1 May 2018 15:49:06 -0700 Subject: [PATCH] edit heuristic. --- virtupet/.idea/misc.xml | 2 +- virtupet/data/pudgies/0x11bce.json | 161 ++++++++++++++++++++++++++++ virtupet/data/pudgies/0x1230e.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0x12612.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0x12fdd.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0x16944.json | 161 ++++++++++++++++++++++++++++ virtupet/data/pudgies/0x35b0.json | 157 +++++++++++++++++++++++++++ virtupet/data/pudgies/0x8351.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0x9836.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0xd075.json | 153 ++++++++++++++++++++++++++ virtupet/data/pudgies/0xfc71.json | 165 +++++++++++++++++++++++++++++ virtupet/main.py | 2 +- 12 files changed, 1564 insertions(+), 2 deletions(-) create mode 100644 virtupet/data/pudgies/0x11bce.json create mode 100644 virtupet/data/pudgies/0x1230e.json create mode 100644 virtupet/data/pudgies/0x12612.json create mode 100644 virtupet/data/pudgies/0x12fdd.json create mode 100644 virtupet/data/pudgies/0x16944.json create mode 100644 virtupet/data/pudgies/0x35b0.json create mode 100644 virtupet/data/pudgies/0x8351.json create mode 100644 virtupet/data/pudgies/0x9836.json create mode 100644 virtupet/data/pudgies/0xd075.json create mode 100644 virtupet/data/pudgies/0xfc71.json diff --git a/virtupet/.idea/misc.xml b/virtupet/.idea/misc.xml index 0a08196..d320dcc 100644 --- a/virtupet/.idea/misc.xml +++ b/virtupet/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/virtupet/data/pudgies/0x11bce.json b/virtupet/data/pudgies/0x11bce.json new file mode 100644 index 0000000..4483381 --- /dev/null +++ b/virtupet/data/pudgies/0x11bce.json @@ -0,0 +1,161 @@ +{ + "uid": "0x11bce", + "name": "Erika", + "dna": [ + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "color": "Purple", + "personality": "INFP", + "parents": [ + "0x16944", + "0xfc71" + ], + "happiness": 9.166232975450356, + "known_decisions": [ + { + "name": "nothing", + "count": 1 + }, + { + "name": "push_car", + "count": 1 + }, + { + "name": "eat_cake", + "count": 1 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x1230e.json b/virtupet/data/pudgies/0x1230e.json new file mode 100644 index 0000000..47a6a3d --- /dev/null +++ b/virtupet/data/pudgies/0x1230e.json @@ -0,0 +1,153 @@ +{ + "uid": "0x1230e", + "name": "Stefan", + "dna": [ + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1 + ], + "color": "Red", + "personality": "ESFJ", + "parents": [ + null, + null + ], + "happiness": 3.0, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x12612.json b/virtupet/data/pudgies/0x12612.json new file mode 100644 index 0000000..db3c48e --- /dev/null +++ b/virtupet/data/pudgies/0x12612.json @@ -0,0 +1,153 @@ +{ + "uid": "0x12612", + "name": "Alina", + "dna": [ + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1 + ], + "color": "Red", + "personality": "INTP", + "parents": [ + "0x1230e", + "0x9836" + ], + "happiness": 3.0, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x12fdd.json b/virtupet/data/pudgies/0x12fdd.json new file mode 100644 index 0000000..0a60bef --- /dev/null +++ b/virtupet/data/pudgies/0x12fdd.json @@ -0,0 +1,153 @@ +{ + "uid": "0x12fdd", + "name": "Kayla", + "dna": [ + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1 + ], + "color": "Midnight", + "personality": "INFJ", + "parents": [ + null, + null + ], + "happiness": 3.0, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x16944.json b/virtupet/data/pudgies/0x16944.json new file mode 100644 index 0000000..108f751 --- /dev/null +++ b/virtupet/data/pudgies/0x16944.json @@ -0,0 +1,161 @@ +{ + "uid": "0x16944", + "name": "Yosef", + "dna": [ + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0 + ], + "color": "Red", + "personality": "ISTP", + "parents": [ + null, + null + ], + "happiness": 5.994522660764723, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + }, + { + "name": "eat_cake", + "count": 5 + }, + { + "name": "eat_veggies", + "count": 1 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x35b0.json b/virtupet/data/pudgies/0x35b0.json new file mode 100644 index 0000000..7fa13c6 --- /dev/null +++ b/virtupet/data/pudgies/0x35b0.json @@ -0,0 +1,157 @@ +{ + "uid": "0x35b0", + "name": "Demi", + "dna": [ + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1 + ], + "color": "Angel", + "personality": "INTJ", + "parents": [ + null, + null + ], + "happiness": 6.675573377701127, + "known_decisions": [ + { + "name": "nothing", + "count": 1 + }, + { + "name": "eat_veggies", + "count": 1 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x8351.json b/virtupet/data/pudgies/0x8351.json new file mode 100644 index 0000000..e7fc482 --- /dev/null +++ b/virtupet/data/pudgies/0x8351.json @@ -0,0 +1,153 @@ +{ + "uid": "0x8351", + "name": "Milan", + "dna": [ + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1 + ], + "color": "Blue", + "personality": "ISFP", + "parents": [ + null, + null + ], + "happiness": 7.2032425302668335, + "known_decisions": [ + { + "name": "nothing", + "count": 3 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0x9836.json b/virtupet/data/pudgies/0x9836.json new file mode 100644 index 0000000..38dfdb8 --- /dev/null +++ b/virtupet/data/pudgies/0x9836.json @@ -0,0 +1,153 @@ +{ + "uid": "0x9836", + "name": "Aaron", + "dna": [ + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1 + ], + "color": "Green", + "personality": "INFP", + "parents": [ + null, + null + ], + "happiness": 3.0, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0xd075.json b/virtupet/data/pudgies/0xd075.json new file mode 100644 index 0000000..7be1bb9 --- /dev/null +++ b/virtupet/data/pudgies/0xd075.json @@ -0,0 +1,153 @@ +{ + "uid": "0xd075", + "name": "Kamari", + "dna": [ + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0 + ], + "color": "Green", + "personality": "ISFJ", + "parents": [ + null, + null + ], + "happiness": 3.0, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + } + ] +} \ No newline at end of file diff --git a/virtupet/data/pudgies/0xfc71.json b/virtupet/data/pudgies/0xfc71.json new file mode 100644 index 0000000..f15b0e8 --- /dev/null +++ b/virtupet/data/pudgies/0xfc71.json @@ -0,0 +1,165 @@ +{ + "uid": "0xfc71", + "name": "Kaylyn", + "dna": [ + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1 + ], + "color": "Blue", + "personality": "ISTJ", + "parents": [ + null, + null + ], + "happiness": 7.5829541116519446, + "known_decisions": [ + { + "name": "nothing", + "count": 0 + }, + { + "name": "eat_cake", + "count": 3 + }, + { + "name": "meditate", + "count": 1 + }, + { + "name": "roll_ball", + "count": 4 + } + ] +} \ No newline at end of file diff --git a/virtupet/main.py b/virtupet/main.py index 1c8cf37..a20d1cb 100644 --- a/virtupet/main.py +++ b/virtupet/main.py @@ -21,7 +21,7 @@ def main(): font = pygame.font.SysFont('Comic Sans MS', 30) size = [constants.SCREEN_WIDTH, constants.SCREEN_HEIGHT] - screen = pygame.display.set_mode(size) + screen = pygame.display.set_mode(size, pygame.FULLSCREEN) active_agent_list = []