edit readme,fix some bug,edit client ui
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
import { Link } from '../../src/utils/Link';
|
||||
import { Player } from '../../src/app/core/Player';
|
||||
|
||||
describe('test/utils/link.test.ts', () => {
|
||||
it('link', async () => {
|
||||
const person1 = new Player({
|
||||
buyIn: 0,
|
||||
counter: 1, position: 1, userId: '1', socketId: '', account: '', nickName: '' });
|
||||
const person2 = new Player({
|
||||
buyIn: 0,
|
||||
counter: 2, position: 2, userId: '2', socketId: '', account: '', nickName: '' });
|
||||
const person3 = new Player({
|
||||
buyIn: 0,
|
||||
counter: 2, position: 3, userId: '3', socketId: '', account: '', nickName: '' });
|
||||
const person4 = new Player({
|
||||
buyIn: 0,
|
||||
counter: 2, position: 4, userId: '4', socketId: '', account: '', nickName: '' });
|
||||
// const person5 = new Player({ counter: 2, position: 5, userId: '5' });
|
||||
const link = new Link<Player>([ person1, person2, person3, person4 ], false);
|
||||
console.log(link.removeNode(0));
|
||||
});
|
||||
|
||||
});
|
||||
// import { Link } from '../../src/utils/Link';
|
||||
// import { Player } from '../../src/app/core/Player';
|
||||
//
|
||||
// describe('test/utils/link.test.ts', () => {
|
||||
// it('link', async () => {
|
||||
// const person1 = new Player({
|
||||
// buyIn: 0,
|
||||
// counter: 1, position: 1, userId: '1', socketId: '', account: '', nickName: '' });
|
||||
// const person2 = new Player({
|
||||
// buyIn: 0,
|
||||
// counter: 2, position: 2, userId: '2', socketId: '', account: '', nickName: '' });
|
||||
// const person3 = new Player({
|
||||
// buyIn: 0,
|
||||
// counter: 2, position: 3, userId: '3', socketId: '', account: '', nickName: '' });
|
||||
// const person4 = new Player({
|
||||
// buyIn: 0,
|
||||
// counter: 2, position: 4, userId: '4', socketId: '', account: '', nickName: '' });
|
||||
// // const person5 = new Player({ counter: 2, position: 5, userId: '5' });
|
||||
// const link = new Link<Player>([ person1, person2, person3, person4 ], false);
|
||||
// console.log(link.removeNode(0));
|
||||
// });
|
||||
//
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user