-
- {{Math.floor(size * prevSize)}}
-
- {{Math.floor(size * pot)}}
+ > {{Math.floor(size)}}
@@ -85,18 +80,18 @@ import { IPlayer } from '@/interface/IPlayer';
private playClick = false;
private playRaise = false;
private playFold = false;
- private raiseSizeMap = {
- firsAction: {
- two: 2,
- three: 3,
- four: 4,
- },
- other: {
- oneThirdPot: 0.5,
- halfPot: 0.75,
- pot: 1,
- },
- };
+ // private raiseSizeMap = {
+ // firsAction: {
+ // two: 2,
+ // three: 3,
+ // four: 4,
+ // },
+ // other: {
+ // oneThirdPot: 0.5,
+ // halfPot: 0.75,
+ // pot: 1,
+ // },
+ // };
@Watch('isAction')
private wAction(val: boolean) {
@@ -111,13 +106,20 @@ import { IPlayer } from '@/interface/IPlayer';
this.raiseSize = val > this.currPlayer.counter ? this.currPlayer.counter : val;
}
+ get raiseSizeMap() {
+ let size = this.pot > this.baseSize * 4 ? this.pot : this.baseSize * 2;
+ if (this.prevSize > 1) {
+ size = this.prevSize * 4;
+ }
+ return size === this.baseSize * 2 ? [ size, 2 * size, 3 * size ] : [ 0.5 * size, 0.75 * size, size ];
+ }
+
get canActionSize() {
return Number(this.currPlayer && this.currPlayer.counter + this.currPlayer.actionSize);
}
private raise(size: number) {
- const realSize = size === 0 ? this.prevSize * 3 : size * this.pot;
- this.action(`raise:${Math.floor(realSize)}`);
+ this.action(`raise:${Math.floor(size)}`);
}
private action(command: string) {
@@ -137,9 +139,8 @@ import { IPlayer } from '@/interface/IPlayer';
}
private showActionSize(multiple: number) {
- // big then double pre-size and small then counter
return this.currPlayer
- && this.currPlayer.counter > Math.floor(multiple * this.pot)
+ && this.currPlayer.counter > Math.floor(multiple)
&& this.prevSize * 2 <= Math.floor(multiple * this.pot)
&& this.baseSize * 2 <= Math.floor(multiple * this.pot);
}
diff --git a/client/src/components/SendMsg.vue b/client/src/components/SendMsg.vue
index e1763dd..42bbde9 100644
--- a/client/src/components/SendMsg.vue
+++ b/client/src/components/SendMsg.vue
@@ -1,80 +1,90 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/client/src/components/SitList.vue b/client/src/components/SitList.vue
index 030f633..37f4b55 100644
--- a/client/src/components/SitList.vue
+++ b/client/src/components/SitList.vue
@@ -78,7 +78,7 @@