July 23, 2023, 12:36 p.m. |
+5 |
Experience for appreciated comment cerankas: 1 on Phil15: I certainly copied a few things that I changed to my needs to solve things and learnt a lot in the p... |
July 23, 2023, 10:30 a.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: I agree it's beautiful! And awesome visuals as always! |
July 23, 2023, 10:30 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: I agree it's beautiful! And awesome visuals as always! |
July 23, 2023, 10 a.m. |
+5 |
Experience for appreciated comment kurosawa4434: 1 on Phil15: I agree it's beautiful! And awesome visuals as always! |
July 23, 2023, 10 a.m. |
+1 |
Experience for voted comment kurosawa4434: 1 on Phil15: I agree it's beautiful! And awesome visuals as always! |
July 21, 2023, 6:33 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: From what I've seen, assuming `w >= h` (or we switch w and h), we can write the euclidean quotient `... |
July 21, 2023, 6:33 a.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: From what I've seen, assuming `w >= h` (or we switch w and h), we can write the euclidean quotient `... |
July 20, 2023, 5:20 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: @freeman_lex I definitely had fun looking at a few cuts. I would add some tests to see beautiful cut... |
July 20, 2023, 5:20 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: @freeman_lex I definitely had fun looking at a few cuts. I would add some tests to see beautiful cut... |
July 20, 2023, 10:07 a.m. |
+1 |
Experience for voted solution koppandi.alin: 1 on v3: Dynamic Programming, more memory-friendly for large numbers-Phil15 |
July 18, 2023, 6:25 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: @freeman_lex I published it in the Creative category with a very basic matplotlib addition to see if... |
July 18, 2023, 6:25 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: @freeman_lex I published it in the Creative category with a very basic matplotlib addition to see if... |
July 18, 2023, 6:03 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: Well now it works for me. I liked this mission, and certainly hope I'm right. I might try to convert... |
July 18, 2023, 6:03 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: Well now it works for me. I liked this mission, and certainly hope I'm right. I might try to convert... |
July 18, 2023, 10:17 a.m. |
+1 |
Experience for voted comment kurosawa4434: 1 on Phil15: I would say a hard "no!" and your fourth cut would cut multiple pieces at once which is forbidden (r... |
July 17, 2023, 9:14 a.m. |
+24 |
Experience for voted solution Pactp: 5 on Operating cut-Phil15 |
July 16, 2023, 7:40 p.m. |
+5 |
Experience for appreciated comment amandel: 1 on Phil15: Me too, so to easily fix my function, I made a "queen"-generalization. |
July 16, 2023, 7:40 p.m. |
+1 |
Experience for voted comment amandel: 1 on Phil15: Me too, so to easily fix my function, I made a "queen"-generalization. |
July 16, 2023, 4:02 p.m. |
+12 |
Experience for solved mission Checkers Capture |
July 15, 2023, 8:19 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: Names can be tricky. On checkio server, I think it is possible that names may be relatives names lik... |
July 15, 2023, 8:19 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Names can be tricky. On checkio server, I think it is possible that names may be relatives names lik... |
July 15, 2023, 8:17 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: The inital code has 6 classes defined class Army: pass class Swordsman: pass # deleted ?! class Lanc... |
July 14, 2023, 2:11 p.m. |
+1 |
Experience for voted solution nogiwa: 1 on [py3.9+] just import math.gcd-Phil15 |
July 14, 2023, 1:04 p.m. |
+5 |
Experience for voted solution flowerinapot: 5 on operator.itemgetter(1) itertools.groupby-Phil15 |
July 14, 2023, 1:03 p.m. |
+6 |
Experience for voted solution flowerinapot: 5 on 3-lines: zips and slices-Phil15 |
July 14, 2023, 1:01 p.m. |
+6 |
Experience for voted solution flowerinapot: 5 on Basic loop-Phil15 |
July 14, 2023, 1 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Yep `__import__` is good to make real 1-liner. And groupby comes naturally here since it's even writ... |
July 14, 2023, 1 p.m. |
+5 |
Experience for voted solution flowerinapot: 5 on 1-liner: itertools.groupby-Phil15 |
July 14, 2023, 11:52 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I hate this rookie too. This rookie crashed my code because its implementation wasn't compatible wit... |
July 14, 2023, 9:28 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: The error is about `self.__is_alive = True`. You can't set it, there is a method of the same name. I... |
July 14, 2023, 9:27 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: The error there is that the checker creates a rookie unit (which is a warrior with attack = 1). Look... |
July 14, 2023, 9:25 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: **Army 1 have the advantage to always start a fight. So here, even if it's tricky, army 1 wins even ... |
July 14, 2023, 9:23 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: Again about Rookie class... ^^ I let you see my comments in the file. I would have other things to s... |
July 14, 2023, 9:23 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Again about Rookie class... ^^ I let you see my comments in the file. I would have other things to s... |
July 14, 2023, 9:22 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Line 120, you subtrack something that can negative. In that case, health increases while it should n... |
July 14, 2023, 6:47 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: With the weak tests these missions have, it can be the smallest thing that fail a test. So I'm gonna... |
July 14, 2023, 6:47 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: `...penetrate / 100` should probably be `...penetrate // 100` ... some time ... I think I found it, ... |
July 14, 2023, 6:47 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: Yeah I get it # About this test army_1 = Army() army_1.add_units(Warrior, 2) army_1.add_units(Lancer... |
July 14, 2023, 6:47 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Yeah I get it # About this test army_1 = Army() army_1.add_units(Warrior, 2) army_1.add_units(Lancer... |
July 14, 2023, 6:43 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I personally won't have the patience to understand each step of the battle you attached. So many thi... |
July 13, 2023, 2:35 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: first unit (lancer or other or healer or warlord), then healers, then lancers, then others, then war... |
July 13, 2023, 5:55 a.m. |
+24 |
Experience for voted solution flatline: 5 on My first use of zip, zip_longest and accumulate. And useful slicing.-Phil15 |
July 12, 2023, 10 a.m. |
+1 |
Experience for voted solution krab-hranitel01: 1 on First-Phil15 |
July 12, 2023, 7:45 a.m. |
+1 |
Experience for voted comment Kolia951: 1 on Phil15: Indeed! .@freeman_lex Annoying bug |
July 12, 2023, 1:36 a.m. |
+4 |
Experience for voted solution amandel: 1 on Cached tiling counts-Phil15 |
July 11, 2023, 6:12 a.m. |
+7 |
Experience for voted solution asapfrogy: 5 on date time timedelta-Phil15 |
July 10, 2023, 12:51 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Well if you don't reuse unit_2 after, then yeah it does not matter. But we do reuse winners in the n... |
July 10, 2023, 12:51 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: An eventually dead unit_1 still wrongfully hits unit_2 line 21. Lucky it passed tests. |
July 10, 2023, 12:51 p.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: An eventually dead unit_1 still wrongfully hits unit_2 line 21. Lucky it passed tests. |
July 10, 2023, 8:35 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I restarted this serie with your forum post. I thought about dataclass for weapons, not for warrior ... |
July 10, 2023, 8:18 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I won't play this any longer (I review a second time, first one wasn't enough ?, you delete your sol... |
July 10, 2023, 8:18 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: That problem is quite rare, I'm not sure it really needs a new "rule". But if you do, don't take aut... |
July 8, 2023, 1:17 p.m. |
+5 |
Experience for voted solution flowerinapot: 5 on With (new) hit method returning damage, adapted for vampires.-Phil15 |
July 7, 2023, 5:14 a.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on Phil15: Nice hotkeys! And thank you to display them on buttons, my brain is not that extensible. |
July 7, 2023, 5:14 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on Phil15: Nice hotkeys! And thank you to display them on buttons, my brain is not that extensible. |
July 7, 2023, 5:08 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I agree, Battle does not really need to be a class (except for the checker, so no choice here ^^). T... |
July 7, 2023, 5:08 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: I agree, Battle does not really need to be a class (except for the checker, so no choice here ^^). T... |
July 7, 2023, 5:04 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Well I see the change, it's subtle. If you think it is needed, I invite you to make the change in th... |
July 7, 2023, 5:03 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: From what I understand, the note may not be enough for Pouf, but unless there is a suggestion how to... |
July 7, 2023, 5:02 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Note that this note was added (some months ago) after multiple posts about this problem. With it, it... |
July 7, 2023, 4:52 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Great, I know it beats the intuition at first. Consider the text right below your post heading: “[..... |
July 7, 2023, 4:52 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I know this "20 vs 21 battle" is a pain in the ... There is a previous forum post which goes into fi... |
July 7, 2023, 4:50 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: As said many times on the forum and written in the description, army1 has the advantage to start eve... |
July 7, 2023, 4:49 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: After surprise, I obviously went to see the documentation... https://docs.python.org/3/tutorial/clas... |
July 7, 2023, 4:49 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: After surprise, I obviously went to see the documentation... https://docs.python.org/3/tutorial/clas... |
July 7, 2023, 4:46 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: Well I must admit I'm surprised, I clearly misunderstood something here. I suppose it is because uni... |
July 7, 2023, 4:46 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Well I must admit I'm surprised, I clearly misunderstood something here. I suppose it is because uni... |
July 7, 2023, 4:44 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Difference is HUGE. In the first case, units is a class variable while it's not in the second case. ... |
July 7, 2023, 4:42 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I think that the problem is that when health comes to 0 the unit is not alive anymore and therefore ... |
July 7, 2023, 4:39 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: return self.fight(army1, army2) ~~~~~~~ maybe. "print" displaying False okay, but currently you don'... |
July 6, 2023, 1:26 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Later I made a "fight" method in the Army class. The Battle class becomes then nearly empty. |
July 6, 2023, 1:25 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I agree on both things, I started using `collections.deque` between this and my final version of the... |
July 6, 2023, 1:24 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Well, we use both sides of the list here. One side to add new units, the other to fight and die. And... |
July 6, 2023, 1:23 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Well, it is possible to use this kind of structure `[[qty, type_of_Warrior]]` but it clearly complic... |
July 6, 2023, 1:22 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: It's an old version (I only published the new version in the 9th mission). Now, I use a `collections... |
July 6, 2023, 1:19 p.m. |
+5 |
Experience for voted solution flowerinapot: 5 on Army with 3 properties : is_alive, warrior, pop-Phil15 |
July 6, 2023, 7:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: @oduvan @kurosawa4434 Hi guys, you have a few [github pulls](https://github.com/Philippe-Cholet/gith... |
July 6, 2023, 7:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I just sent a [pull request "Add 2 extra tests"](https://github.com/kurosawa4434/checkio-mission-hex... |
July 6, 2023, 7:32 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: I just sent a [pull request "Add 2 extra tests"](https://github.com/kurosawa4434/checkio-mission-hex... |
July 6, 2023, 7:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: It's not just calculate islands for an hexagonal grid, there is inland hexes to determine. *I skippe... |
July 6, 2023, 7:32 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: It's not just calculate islands for an hexagonal grid, there is inland hexes to determine. *I skippe... |
July 6, 2023, 7:05 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: No more email so I mark it resolved. But still... 15 emails in less than 30 minutes. |
July 5, 2023, 7:45 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I forgot to divide by 100 in the 7th mission (I know it's dumb). When we are wrong, our result is di... |
July 5, 2023, 7:45 p.m. |
+4 |
Experience for voted solution Janoo12: 4 on yield holes-Phil15 |
July 5, 2023, 7:43 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: "instance attribute" are defined in `__init__` VS "class attribute" defined at "class level" (not in... |
July 5, 2023, 7:43 p.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: "instance attribute" are defined in `__init__` VS "class attribute" defined at "class level" (not in... |
July 5, 2023, 7:40 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: @freeman_lex Regarding print statements, there is a way to capture if you want. (Unless "redirect_st... |
July 5, 2023, 7:40 p.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: @freeman_lex Regarding print statements, there is a way to capture if you want. (Unless "redirect_st... |
July 5, 2023, 7:34 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: So this is the kind of mission where the mission author works more than 10 users separately, fine wi... |
July 5, 2023, 2:13 p.m. |
+1 |
Experience for voted solution conscloud: 1 on We can sum booleans (False == 0 and True == 1)-Phil15 |
July 5, 2023, 10:05 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Thanks for merging and syncing. |
July 5, 2023, 10:05 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Hi @bsquare I made a totally new version, and I would like your point of view on [it](https://py.che... |
July 5, 2023, 10:04 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: It's just about the bad specifications this saga has, he want to improve them, more than solve missi... |
July 5, 2023, 9:59 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: > he also deals a 50% of the deal damage to the enemy unit, standing behind the firstly assaulted on... |
July 5, 2023, 9:59 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: > he also deals a 50% of the deal damage to the enemy unit, standing behind the firstly assaulted on... |
July 5, 2023, 9:58 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: Like you said, it's interpretations. And like we saw above, contradictory interpretations can pass a... |
July 5, 2023, 9:53 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: @oduvan Hi there is a PR here. |
July 5, 2023, 9:53 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: I'm reading it. EDIT: Two more commits |
July 5, 2023, 9:53 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on Phil15: @oduvan Please merge [pull request here](https://github.com/XanderVi/checkio-missions-set-war/pull/2... |
July 5, 2023, 9:52 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on Phil15: Well, since there is no test and this wasn't even synced, I'm deleting it and add a precondition abo... |