Skip to content
5 changes: 3 additions & 2 deletions OverlevendeTroepen.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
// @description Adds survivors to reports and shows gained ODA and ODD
// @icon http://m.img.brothersoft.com/android/405/1352517939_icon.png
// @include https://*.tribalwars.*/game.php?*&screen=report*
// @version 1.6
// @version 1.8
// @grant none
// ==/UserScript==

// Start process
function survivors(table, deff){
var row = table.insertRow(table.rows.length);

Expand Down Expand Up @@ -78,7 +79,7 @@ function calcODD(array, table){
var row2 = table.insertRow(table.rows.length);
var cell1 = row.insertCell(0);
var cell2 = row2.insertCell(0);
cell1.innerHTML = "ODD: " + result;
cell1.innerHTML = "ODD: " + result + " aiaiai miserie miserie miserie";
cell1.style.fontWeight = 'bold';
cell2.innerHTML = "VVDD: " + killed;
cell2.style.fontWeight = 'bold';
Expand Down
19 changes: 18 additions & 1 deletion intro.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
father(anton,bart).
father(anton,daan).
father(anton,maarten).
father(anton,elisa).
father(fabian,anton).

Expand All @@ -15,3 +15,20 @@
mother(M,X),
mother(M,Y),
X \== Y.

/* Part 2 */
a.
b.
c.

edge(a,b).
edge(c,b).

isConnected(A,B) :-
edge(A,B) ; edge(B,A).

edge(a,c).
edge(c,d).

mother(celine, gerda).
mother(gerde, anton).