Forum
A place to discuss topics/games with other webDiplomacy players.
Page 978 of 1419
FirstPreviousNextLast
obiwanobiwan (248 D)
24 Oct 12 UTC
A Diplomacy Game for Literature Lovers?
Well, we've done Star Trek Diplomacy before, each power corresponding to one of the powers from Trek...anyone up for playing a game where each player of a power (we'll say Turkey counts for the whole Middle East to make it easier) takes on the persona of a great author from said country? Ex., Shakespeare/Chaucer/Dickens for England, Hugo/Proust/Racine for France, Goethe for Germany, Dostoyevsky/Tolstoy (not that one!) for Russia, etc...?
24 replies
Open
c0llieman (0 DX)
27 Oct 12 UTC
live game
anyone up for a live game
0 replies
Open
Tolstoy (1962 D)
24 Oct 12 UTC
The Third Party Presidential Debate
http://www.youtube.com/watch?v=5EcaX12h46k
Debate starts at 1:02:00
50 replies
Open
Mapu (362 D)
26 Oct 12 UTC
Banhammer Thread
aka Another one gone, another one gone, another one bites the dust...

This guy just ruined a game of mine:
http://www.webdiplomacy.net/profile.php?userID=47663
8 replies
Open
Fasces349 (0 DX)
26 Oct 12 UTC
Canada's economic problem
So I am an econ major in my first year of university, so obviously I know very little compared to others about economics. However Canada has a rather strange economic problem (which I will explain below) and I think I have a viable solution to solve it. Can some of the greats on this site explain why my solution wont work (as why isn't it on the table as a solution)
14 replies
Open
krellin (80 DX)
26 Oct 12 UTC
Fed Spends 2.5*Poverty PER Pov Household
Ahhh...Government efficiency at its finest. Read it an weep. No...really...you should honestly weep at this.

http://www.weeklystandard.com/blogs/over-60000-welfare-spentper-household-poverty_657889.html
3 replies
Open
Puddle (413 D)
24 Oct 12 UTC
Genie
You come across a genie, and you get one wish, assume that the genie will properly carry out your wish, not malicious misunderstand the intent. Only rule is no asking for an infinite stream of wishes (or anything that would be tantamount to this).
88 replies
Open
umbletheheep (1645 D)
26 Oct 12 UTC
Determine the Election Game
4 replies
Open
erist (228 D(B))
26 Oct 12 UTC
Need a replacement Austria
1902. Austria in a fine position with 5 supply centers.

http://webdiplomacy.net/board.php?gameID=102520
0 replies
Open
redhouse1938 (429 D)
25 Oct 12 UTC
Somebody used the words "poor" and "UK" in one sentence, and then PE posted something
The first thing made me think of Theodore Dalrymple, the second of legalizing drugs. So without further ado, I present to you Theodore Dalrymple on the legalizing of drugs.
http://www.drugfree.org.au/fileadmin/Media/Reference/DontLegalizeDrugs.pdf
93 replies
Open
Jamiet99uk (873 D)
26 Oct 12 UTC
I AM KRELLIN
I have a terrible confession to make.
22 replies
Open
Puddle (413 D)
24 Oct 12 UTC
If Romney wins the election
What do you think his chances of successfully carrying out proposed policies is? As well as how he'll be forced to govern?
160 replies
Open
Jamiet99uk (873 D)
23 Oct 12 UTC
Sustainable development and human happiness
An excellent speech by the President of Uruguay:

http://www.youtube.com/watch?v=Mr465Atwenw
2 replies
Open
Tantris (2456 D)
26 Oct 12 UTC
EOG: Gunfall
I thought I had the win, but you got the stalemate line together. When France spooked backwards, it seemed like my win was guaranteed, but then he returned with English fleets as backup. I imagine I missed an opportunity, but I am not sure right now what it was.
1 reply
Open
redhouse1938 (429 D)
19 Oct 12 UTC
South Africa
I'm curious what people's opinion about this is. I know mine is a little controversial, I'll post it later, but 99% of you are not going to like what I have to say :(

http://www.economist.com/news/leaders/21564846-south-africa-sliding-downhill-while-much-rest-continent-clawing-its-way-up
227 replies
Open
Conservative Man (100 D)
25 Oct 12 UTC
I'm back
So my opinion on a very important subject has changed. See inside.
22 replies
Open
jmo1121109 (3812 D)
26 Oct 12 UTC
JavaScript question
See inside
jmo1121109 (3812 D)
26 Oct 12 UTC
Does anyone have a clue why the hell this won't work in IE when it does in Chrome, Firefox, and Safari?

<html>
<head>
<meta charset = "utf-8" "X-UA-Compatible" >
<title>Game 15</title>

<script type="text/javascript">
var gamePiece = new Array(16); // Keeps track of the pieces on the game board

var moves = 0; // Moves per game

// These are the time functions 'code from class slides used'.
var seconds = 0; // Keeps track of seconds.
var timeReset = ""; // Used to reset the time.
function startTimer()
{
seconds = 0;
timeReset=setInterval("updateTime()", 1000);
}

function updateTime()
{
seconds++;
document.getElementById("timer").innerHTML = seconds;
}
window.addEventListener("load", start, false);

// Board functions start here
function start()
{
for(i=1; i<gamePiece.length+1; i++)
gamePiece[i-1] = document.getElementById("cell"+ i.toString());
reset();
}

function reset()
{
for(count=0; count < gamePiece.length; count++) { gamePiece[count].innerHTML = 20; }

var flag = 0;
var temp = 0;
for(counter=0; counter< gamePiece.length; counter++)
{
while(temp ==0)
{
var value =1;
value=Math.round(Math.random()*15);
var flag =0;
for(count=0; count<counter; count++)
if(gamePiece[count].innerHTML == value) flag = 1;
if(flag==0)
{
gamePiece[counter].innerHTML = value;
temp = 1;
}
}
temp = 0;
}

for(count=0; count<gamePiece.length; count++)
if(gamePiece[count].innerHTML == 0) gamePiece[count].innerHTML = '';

// Reset the timer
seconds = 0;
document.getElementById("timer").innerHTML = seconds;
window.clearInterval(timeReset);
startTimer();

// Reset the move counter
moves = 0;
document.getElementById("movesCount").innerHTML = moves;
}

function resetEasyGame()
{
// Set board so just 1 move is needed to win.
var value=1
for(count=0; count< 14; count++)
{
gamePiece[count].innerHTML = value;
value++;
}
gamePiece[14].innerHTML = '';
gamePiece[15].innerHTML = 15;

// Reset move counter
moves = 0;
document.getElementById("movesCount").innerHTML = moves;

// Reset timer
seconds = 0;
document.getElementById("timer").innerHTML = seconds;
window.clearInterval(timeReset);
startTimer();
}

var piece; // Most recently clicked game piece
function moveCell(number)
{
piece = document.getElementById("cell" + number.toString());

var elementID;
for (var counter = 0; counter < gamePiece.length; counter++)
{
// Find the right cell to move based on Id.
if (piece.id == gamePiece[counter].id)
{
elementID = counter;
break;
}
}

// How to move when the balk space is left, right, below, and above, in that order.
if (elementID > 0 && elementID%4 != 0 && gamePiece[elementID-1].innerHTML == "") swap(elementID, elementID-1, piece);
else if(elementID < 15 && elementID%4 != 3 && gamePiece[elementID+1].innerHTML == "") swap(elementID, elementID+1, piece);
else if(elementID < 12 && gamePiece[elementID+4].innerHTML == "") swap(elementID, elementID+4, piece);
else if(elementID > 3 && gamePiece[elementID-4].innerHTML == "") swap(elementID, elementID-4, piece);
}

function swap(r, c, current)
{
var temp = gamePiece[c].innerHTML;
gamePiece[c].innerHTML = gamePiece[r].innerHTML;
gamePiece[r].innerHTML = temp;
current.innerHTML = gamePiece[r].innerHTML;

// Keep track of the number of moves.
moves++;
document.getElementById("movesCount").innerHTML = moves;

var won = true
for(var counter = 0; counter<15; counter++)
{
if(counter==15 && gamePiece[counter].innerHTML != "") won = false;
else if(gamePiece[counter].innerHTML != counter+1) won = false;
}

// If the user has won
if(won == true)
{
var answer = confirm("You won the game! Click ok to start a new game.")
if (answer)
{
alert("Here's your new game!")
reset();
}
else alert("Hope you enjoyed the game!")
}
}
</script>

<body>
<h1>JavaScript '15' </h1>
<p>
<input type="button" value="Reset" onclick="reset();"/>
<input type="button" value="Easy Game" onclick="resetEasyGame();"/>
</p>

<p>
Time spent on Game: <span id="timer">0</span><br>
Moves this game: <span id="movesCount">0</span>
<br><br>
</p>

<table bordercolor = "blue" cellspacing="0" width="250" height="250" border="1">
<tr>
<td align = center width="20" id="cell1" onclick="moveCell(1)"></td>
<td align = center width="20" id="cell2" onclick="moveCell(2)"></td>
<td align = center width="20" id="cell3" onclick="moveCell(3)"></td>
<td align = center width="20" id="cell4" onclick="moveCell(4)"></td>
</tr>

<tr>
<td align = center width="20" id="cell5" onclick="moveCell(5)"></td>
<td align = center width="20" id="cell6" onclick="moveCell(6)"></td>
<td align = center width="20" id="cell7" onclick="moveCell(7)"></td>
<td align = center width="20" id="cell8" onclick="moveCell(8)"></td>
</tr>

<tr>
<td align = center width="20" id="cell9" onclick="moveCell(9)"></td>
<td align = center width="20" id="cell10" onclick="moveCell(10)"></td>
<td align = center width="20" id="cell11" onclick="moveCell(11)"></td>
<td align = center width="20" id="cell12" onclick="moveCell(12)"></td>
</tr>

<tr>
<td align = center width="20" id="cell13" onclick="moveCell(13)"></td>
<td align = center width="20" id="cell14" onclick="moveCell(14)"></td>
<td align = center width="20" id="cell15" onclick="moveCell(15)"></td>
<td align = center width="20" id="cell16" onclick="moveCell(16)"></td>
</tr>
</table>

</body>
</html>
bo_sox48 (5202 DMod(G))
26 Oct 12 UTC
Quick look but it looks okay to me. Typo in the coding? Backslash/forward slash error? I used to make those a lot.
Mapu (362 D)
26 Oct 12 UTC
I think you ought to consider using JQuery so that you can address the DOM elements in a way that will work across all browsers. A lot of times, the DOM hierarchy is a little different between browsers and JQuery takes care of this for you.
jmo1121109 (3812 D)
26 Oct 12 UTC
Not that I can tell. It's a quick game I had to throw together, and it works great in every other browser. I have no experience with any differences in IE compared to the other browsers compatibility
jmo1121109 (3812 D)
26 Oct 12 UTC
that was my first thought, and naturally not allowed for the assignment.
Mapu (362 D)
26 Oct 12 UTC
Okay -- are you using Firebug? Also, there's a Javascript debugger in IE and Chrome. Maybe it would tell you if there's an error of some kind that IE can't handle but the others can.
jmo1121109 (3812 D)
26 Oct 12 UTC
SCRIPT5007: Unable to get value of the property 'id': object is null or undefined

Is the error I got when I debugged it in IE debugger, I searched the error but couldn't find much helpful online. Firebug does not have a similar error. I think it's related to the way I'm checking elements: document.getElementById("cell" + number.toString());
jmo1121109 (3812 D)
26 Oct 12 UTC
This does nothing to help convince me that IE isn't a piece of crap.
bo_sox48 (5202 DMod(G))
26 Oct 12 UTC
Nothing can be done to convince you of a lie such as that one ^
Mapu (362 D)
26 Oct 12 UTC
I can help you in a little while ... have to eat first. Just put it down for now we'll figure it out.
Mapu (362 D)
26 Oct 12 UTC
jmo, I fixed it. It turns out that IE doesn't like that window.addEventListener. Hopefully you are allowed to do this fix:

1) Move all of the javascript to the bottom of the file, so like this:
</table>
<script type="text/javascript" >
...code here...
</script>
</body>
</html>

2) Take out the window.addEventListener line
3) Call start() directly near the top of the javascript, like this:
var seconds = 0; // Keeps track of seconds.
var timeReset = ""; // Used to reset the time.

start();

Those changes fixed it for me. Good luck!
jmo1121109 (3812 D)
26 Oct 12 UTC
That worked, thank you so much Mapu. I can't stand how finicky IE is.
Mapu (362 D)
26 Oct 12 UTC
The game is really cool btw. Very impressive (no kidding).
jmo1121109 (3812 D)
26 Oct 12 UTC
Thanks, it's actually pretty fun, takes some thought to win. And thanks again for the help!
yebellz (729 D(G))
26 Oct 12 UTC
Um, is the game supposed to be solvable for every randomization? I just tried to solve it and ended up in position with everything in place, except the 14 and 15 are swapped. It's a well known result that such a position is unsolvable for such a game.
Mapu (362 D)
26 Oct 12 UTC
Don't tell his teacher. Hopefully they won't play it all the way through.
jmo1121109 (3812 D)
26 Oct 12 UTC
Nope, they do not all have to be solvable.

-Warning to anyone who plays, not all games are solvable ;)
jmo1121109 (3812 D)
26 Oct 12 UTC
Nothing like a week to learn javascript and throw together a working game, it is a fun language though.


18 replies
Tantris (2456 D)
25 Oct 12 UTC
If Obama wins...
How many conservatives are moving to Canada?
22 replies
Open
bo_sox48 (5202 DMod(G))
26 Oct 12 UTC
EOG: Bill Chase
gameID=101405

I know Ancient Med doesn't usually get any attention, but…
1 reply
Open
President Eden (2750 D)
25 Oct 12 UTC
@Tolstoy and other libertarians
Scale of 1-10, how disappointed are y'all in Rand over this? I'm about an 11 right now.
http://www.businessinsider.com/mourdock-rape-republicans-rand-paul-2012-10#ixzz2AJdU8N56
4 replies
Open
King Atom (100 D)
25 Oct 12 UTC
Show Me Something Interesting
The other day, someone told me I am too caught up in the past to function appropriately. It was then made a point that my taste in music accurately depicted the same conceptual view of my personality. So tell me, strangers, what is better today than it was yesterday? And can someone please explain the appeals of ANY form of modern music? I'm not sorry when I say that I am satisfied with listening to this for the rest of my life: http://www.youtube.com/watch?v=ZQ_JAgHxR14
[BCAC]
41 replies
Open
mapleleaf (0 DX)
24 Oct 12 UTC
new game!
6 replies
Open
Bob Genghiskhan (1238 D)
25 Oct 12 UTC
How to not play for a draw.
EOGs for a game where hate overwhelmed sense. Link as soon as it's officially over.
18 replies
Open
2ndWhiteLine (2611 D(B))
24 Oct 12 UTC
Gerrymandering at its finest
My NY state assembly district. 140 miles long. 10 miles wide in some parts. Zero tons of American pride.

http://www.latfor.state.ny.us/maps/2012a/fa101.pdf
26 replies
Open
Gen. Lee (7588 D(B))
25 Oct 12 UTC
EOG - Live Gunboat -276
5 replies
Open
hecks (164 D)
25 Oct 12 UTC
Issues logging in from Facebook
Are other people having issues logging in using the Facebook interface? I can't get into any of my active games (user sheck) and had to create this new account just to post about it. I'm worried I'm missing phases.
7 replies
Open
yaks (218 D)
25 Oct 12 UTC
EoG Procrastination!-2
gameID=102725

We had france at 17 for a long time.
Theres something inexplicably thrilling about being a single unit for four years =).
9 replies
Open
abgemacht (1076 D(G))
25 Oct 12 UTC
Apple Mini
So, are you getting one? Do you like the size? Is it worth the price when you can get a Nexus 7 or Kindle Fire HD for so much less?
19 replies
Open
The Problem of Evil
Inquire Within
11 replies
Open
bo_sox48 (5202 DMod(G))
25 Oct 12 UTC
Hurricane/Snowstorm Sandy
I know it isn't hitting landfall for at least another week yet, but if you're out there, be aware of it. There was a public service announcement regarding it in central Indiana last night, so if we have to worry about it, the east coast should really focus on it.
2 replies
Open
Page 978 of 1419
FirstPreviousNextLast
Back to top