parent
ed30866189
commit
0a16782979
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Console</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Console - test </h1>
|
||||
|
||||
<section>
|
||||
|
||||
</section>
|
||||
<script src="../Model/Card.js"></script>
|
||||
<script src="../Model/Card5.js"></script>
|
||||
<script src="test.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,12 @@
|
||||
/*var fs = require("fs")
|
||||
var vm = require('vm')
|
||||
|
||||
var content = fs.readFileSync(filename)
|
||||
vm.runInThisContext(content)
|
||||
*/
|
||||
console.log("~#Test#~");
|
||||
let card4 = new Card('red','2','losange','full');
|
||||
console.log(`carte de 4 elements : ${card4.color}`);
|
||||
let card5 = new Card('blue','2','losange','full','pointillet');
|
||||
console.log(`carte de 5 elements : ${card5.color}`);
|
||||
console.log(`carte de 5 elements : ${card5.getCLas}`);
|
@ -0,0 +1,14 @@
|
||||
class Card{
|
||||
constructor(color, number, shape, filling){
|
||||
this.color=color;
|
||||
this.number=number;
|
||||
this.shape=shape;
|
||||
this.filling=filling;
|
||||
}
|
||||
numberOfSet(listCards){
|
||||
console.log('TODO');
|
||||
}
|
||||
verifSet(listCards){
|
||||
console.log('TODO');
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
class Card5 extends Card {
|
||||
constructor(color, number, shape, filling, outline){
|
||||
super(color,number,shape,filling);
|
||||
this.outline=outline;
|
||||
}
|
||||
arrayOfAttributes(){
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in new issue