Skip to content

Commit e5c3b32

Browse files
author
aj11p
committed
start of table
1 parent 75f2c0d commit e5c3b32

File tree

3 files changed

+92
-9
lines changed

3 files changed

+92
-9
lines changed

npm-debug.log

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
3+
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
4+
1 verbose cli 'install' ]
5+
2 info using [email protected]
6+
3 info using [email protected]
7+
4 verbose node symlink C:\Program Files\nodejs\\node.exe
8+
5 error Error: ENOENT, stat 'C:\Users\Andrew\AppData\Roaming\npm'
9+
6 error If you need help, you may report this *entire* log,
10+
6 error including the npm and node versions, at:
11+
6 error <http://github.com/npm/npm/issues>
12+
7 error System Windows_NT 6.2.9200
13+
8 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
14+
9 error cwd C:\Users\Andrew\Desktop\koding\HTML-game
15+
10 error node -v v0.10.33
16+
11 error npm -v 1.4.28
17+
12 error path C:\Users\Andrew\AppData\Roaming\npm
18+
13 error code ENOENT
19+
14 error errno 34
20+
15 verbose exit [ 34, true ]

working/app/Board/gameBoard.html

+66-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
<div class="container-fluid"></div>
1+
<div class="container-fluid"></div>
2+
<div class ="conatiner">
3+
4+
<table class="table" width="57%" height ="75%" border ="1" align = "center">
5+
<tr width="25%">
6+
<td>
7+
3
8+
</td>
9+
<td>
10+
3
11+
</td>
12+
<td>
13+
3
14+
</td>
15+
<td>
16+
3
17+
</td>
18+
</tr>
19+
20+
<tr width="25%">
21+
<td>
22+
2
23+
</td>
24+
<td style="background:black">
25+
26+
</td>
27+
<td style="background:black">
28+
29+
</td>
30+
<td>
31+
2
32+
</td>
33+
</tr>
34+
35+
<tr width="25%">
36+
<td>
37+
4
38+
</td>
39+
<td style="background:black">
40+
41+
</td>
42+
<td style="background:black">
43+
44+
</td>
45+
<td>
46+
2
47+
</td>
48+
</tr>
49+
50+
<tr width="25%">
51+
<td >
52+
Start
53+
</td>
54+
<td>
55+
2
56+
</td>
57+
<td>
58+
2
59+
</td>
60+
<td>
61+
2
62+
</td>
63+
</tr>
64+
</table>
65+
66+
<button ng-click="rollDice()">{{display}}</button>

working/app/Board/gameBoard.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
angular.module('app.gameBoard', [])
22
.controller('boardCtrl', function($scope){
3-
$scope.$watch('html', function() {
4-
$("#container").empty();
5-
$("#container").append($scope.html);
6-
})
7-
$scope.compile = function() {
8-
console.log("You clicked a button!")
9-
}
10-
})
3+
$scope.display="Roll Dice";
4+
$scope.rollDice = function(){
5+
var option=Math.floor((Math.random()*3)+1)
6+
$scope.display=option
7+
}
8+
})
119

0 commit comments

Comments
 (0)