be-components 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Squares/api/index.js +604 -0
- package/lib/commonjs/Squares/api/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +0 -1
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +0 -22
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +11 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +338 -0
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -0
- package/lib/commonjs/Squares/index.js +26 -3
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/module/Squares/api/index.js +604 -0
- package/lib/module/Squares/api/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +0 -1
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +0 -22
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +11 -1
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +329 -0
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -0
- package/lib/module/Squares/index.js +26 -3
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/typescript/src/Squares/api/index.d.ts +10 -1
- package/lib/typescript/src/Squares/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts +3 -2
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +18 -0
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Squares/api/index.ts +662 -2
- package/src/Squares/components/BidForm.tsx +0 -1
- package/src/Squares/components/BoardStats.tsx +3 -11
- package/src/Squares/components/MySquaresCard.tsx +9 -2
- package/src/Squares/components/MyStatsCard.tsx +167 -0
- package/src/Squares/index.tsx +26 -4
- package/src/types.d.ts +5 -0
package/src/Squares/api/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from "axios"
|
|
2
2
|
import { APIOverrides } from "../../ApiOverrides"
|
|
3
|
-
import type { BuySquaresResponseProps, EventProps, LeagueProps, OfferResponseProps, PlayerSquareProps, PublicPlayerProps, SquareOfferProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../../types"
|
|
3
|
+
import type { BuySquaresResponseProps, EventProps, LeagueProps, OfferResponseProps, PlayerSquareProps, PublicPlayerProps, SquareOfferProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps, SquareValueProps } from "../../types"
|
|
4
4
|
import moment from "moment-mini"
|
|
5
5
|
|
|
6
6
|
let AUTH_SVC_API = ''
|
|
@@ -65,5 +65,665 @@ const SqauresHelpers = {
|
|
|
65
65
|
ownerships.push({ player_id: id, owned_squares:id_ps.length, owned_pct: id_ps.length / active_ps.length })
|
|
66
66
|
})
|
|
67
67
|
return ownerships.sort((a,b) => b.owned_squares - a.owned_squares)
|
|
68
|
+
},
|
|
69
|
+
amIParticipating: (player_squares:PlayerSquareProps[], player_square_history:PlayerSquareProps[], player_id?:string) => {
|
|
70
|
+
if(!player_id){ return false }
|
|
71
|
+
const i_have_one = player_squares.find(s => s.player_id == player_id)
|
|
72
|
+
if(i_have_one){ return true }
|
|
73
|
+
const i_have_history = player_square_history.find(s => s.player_id == player_id)
|
|
74
|
+
if(i_have_history){ return true }
|
|
75
|
+
return false
|
|
76
|
+
},
|
|
77
|
+
getMyExpectedValue: (squares:SquareProps[], player_squares:PlayerSquareProps[], squares_competition?:SquaresCompetitionProps, player_id?:string ) => {
|
|
78
|
+
if(!squares_competition){ return { ev_pct: 0, money_in: 0, expected_payout:0, expected_value: 0, my_square_values: [], other_square_values: [] } }
|
|
79
|
+
let total_payout = squares_competition.potential_winnings
|
|
80
|
+
if(squares_competition.guaranteed_payout && squares_competition.guaranteed_payout > total_payout){ total_payout = squares_competition.guaranteed_payout }
|
|
81
|
+
let square_values:SquareValueProps[] = []
|
|
82
|
+
squares.map(s => {
|
|
83
|
+
let square_probability = square_probabilities.find(p => p.square_score_x == s.square_score_x && p.square_score_y == s.square_score_y);
|
|
84
|
+
let next_purchase_price = squares_competition.minimum_square_price
|
|
85
|
+
if(s.last_purchase_price > 0){ next_purchase_price = s.last_purchase_price + 0.50 }
|
|
86
|
+
if(!square_probability){ square_values.push({ sq_square_id:s.sq_square_id, probability:0, expected_value:0, expected_payout:0, next_purchase_price, after_purchase_expected_payout:0, after_purchase_expected_value:0}); return; }
|
|
87
|
+
let expected_payout = square_probability.probability * total_payout;
|
|
88
|
+
let expected_value = expected_payout - s.last_purchase_price
|
|
89
|
+
let after_purchase_expected_payout = (square_probability.probability * (total_payout + next_purchase_price))
|
|
90
|
+
let after_purchase_expected_value = after_purchase_expected_payout - next_purchase_price
|
|
91
|
+
square_values.push({ sq_square_id:s.sq_square_id, probability: square_probability.probability, expected_payout, expected_value, next_purchase_price, after_purchase_expected_payout, after_purchase_expected_value })
|
|
92
|
+
return;
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
let open_square_probabilities = square_values.filter(sp => squares.filter(s => s.status == 'open').map(s => s.sq_square_id.toString()).includes(sp.sq_square_id));
|
|
97
|
+
let my_player_squares = player_squares.filter(ps => ps.player_id == player_id);
|
|
98
|
+
|
|
99
|
+
let pctOwnership = my_player_squares.length / squares.filter(s => s.status == 'filled').length
|
|
100
|
+
let sqToPurchase = Math.floor(pctOwnership * open_square_probabilities.length)
|
|
101
|
+
|
|
102
|
+
//ownerPcts.push({ player_id: p, pct:pctOwnership })
|
|
103
|
+
for (let x = 0; x < sqToPurchase; x++) {
|
|
104
|
+
let squaresForPurchase = squares.filter(s => s.status === 'open')
|
|
105
|
+
let square = squaresForPurchase[x]
|
|
106
|
+
if(square){
|
|
107
|
+
let pSQ:PlayerSquareProps = {
|
|
108
|
+
sq_player_square_id:'', sq_comp_id:square.sq_comp_id, sq_square_id:square.sq_square_id, player_id:player_id ?? '', purchase_price:0, status:'active', create_datetime:'', last_update_datetime:''
|
|
109
|
+
}
|
|
110
|
+
my_player_squares.push(pSQ)
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
//Ok we have square values added. Now lets go through the players stuff to see what their current value is
|
|
115
|
+
let my_square_values = square_values.filter(sv => my_player_squares.map(ps => ps.sq_square_id.toString()).includes(sv.sq_square_id.toString()))
|
|
116
|
+
let other_square_values = square_values.filter(sv => !my_player_squares.map(ps => ps.sq_square_id.toString()).includes(sv.sq_square_id.toString()))
|
|
117
|
+
let expected_payout = my_square_values.reduce((a,b) => a + b.expected_payout, 0)
|
|
118
|
+
let money_in = my_player_squares.reduce((a,b) => a + b.purchase_price, 0)
|
|
119
|
+
let expected_value = expected_payout - money_in
|
|
120
|
+
let ev_pct = expected_value / money_in
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
return { ev_pct, money_in, expected_payout, expected_value, other_square_values, my_square_values: my_square_values }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
const square_probabilities = [
|
|
129
|
+
{
|
|
130
|
+
"square_score_x": 0,
|
|
131
|
+
"square_score_y": 0,
|
|
132
|
+
"win_count": 225,
|
|
133
|
+
"probability": 0.069962687
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"square_score_x": 7,
|
|
137
|
+
"square_score_y": 0,
|
|
138
|
+
"win_count": 222,
|
|
139
|
+
"probability": 0.069029851
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"square_score_x": 0,
|
|
143
|
+
"square_score_y": 7,
|
|
144
|
+
"win_count": 167,
|
|
145
|
+
"probability": 0.051927861
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"square_score_x": 7,
|
|
149
|
+
"square_score_y": 7,
|
|
150
|
+
"win_count": 155,
|
|
151
|
+
"probability": 0.048196517
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"square_score_x": 0,
|
|
155
|
+
"square_score_y": 3,
|
|
156
|
+
"win_count": 143,
|
|
157
|
+
"probability": 0.044465174
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"square_score_x": 3,
|
|
161
|
+
"square_score_y": 0,
|
|
162
|
+
"win_count": 135,
|
|
163
|
+
"probability": 0.041977612
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"square_score_x": 3,
|
|
167
|
+
"square_score_y": 7,
|
|
168
|
+
"win_count": 122,
|
|
169
|
+
"probability": 0.037935323
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"square_score_x": 7,
|
|
173
|
+
"square_score_y": 3,
|
|
174
|
+
"win_count": 121,
|
|
175
|
+
"probability": 0.037624378
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"square_score_x": 4,
|
|
179
|
+
"square_score_y": 0,
|
|
180
|
+
"win_count": 106,
|
|
181
|
+
"probability": 0.032960199
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"square_score_x": 3,
|
|
185
|
+
"square_score_y": 3,
|
|
186
|
+
"win_count": 91,
|
|
187
|
+
"probability": 0.02829602
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"square_score_x": 4,
|
|
191
|
+
"square_score_y": 7,
|
|
192
|
+
"win_count": 83,
|
|
193
|
+
"probability": 0.025808458
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"square_score_x": 0,
|
|
197
|
+
"square_score_y": 4,
|
|
198
|
+
"win_count": 77,
|
|
199
|
+
"probability": 0.023942786
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"square_score_x": 7,
|
|
203
|
+
"square_score_y": 4,
|
|
204
|
+
"win_count": 75,
|
|
205
|
+
"probability": 0.023320896
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"square_score_x": 6,
|
|
209
|
+
"square_score_y": 0,
|
|
210
|
+
"win_count": 64,
|
|
211
|
+
"probability": 0.019900498
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"square_score_x": 0,
|
|
215
|
+
"square_score_y": 6,
|
|
216
|
+
"win_count": 61,
|
|
217
|
+
"probability": 0.018967662
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"square_score_x": 7,
|
|
221
|
+
"square_score_y": 6,
|
|
222
|
+
"win_count": 56,
|
|
223
|
+
"probability": 0.017412935
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"square_score_x": 3,
|
|
227
|
+
"square_score_y": 6,
|
|
228
|
+
"win_count": 47,
|
|
229
|
+
"probability": 0.014614428
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"square_score_x": 4,
|
|
233
|
+
"square_score_y": 3,
|
|
234
|
+
"win_count": 46,
|
|
235
|
+
"probability": 0.014303483
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"square_score_x": 4,
|
|
239
|
+
"square_score_y": 4,
|
|
240
|
+
"win_count": 44,
|
|
241
|
+
"probability": 0.013681592
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"square_score_x": 6,
|
|
245
|
+
"square_score_y": 3,
|
|
246
|
+
"win_count": 41,
|
|
247
|
+
"probability": 0.012748756
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"square_score_x": 1,
|
|
251
|
+
"square_score_y": 7,
|
|
252
|
+
"win_count": 40,
|
|
253
|
+
"probability": 0.012437811
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"square_score_x": 4,
|
|
257
|
+
"square_score_y": 1,
|
|
258
|
+
"win_count": 37,
|
|
259
|
+
"probability": 0.011504975
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"square_score_x": 6,
|
|
263
|
+
"square_score_y": 7,
|
|
264
|
+
"win_count": 37,
|
|
265
|
+
"probability": 0.011504975
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"square_score_x": 0,
|
|
269
|
+
"square_score_y": 9,
|
|
270
|
+
"win_count": 36,
|
|
271
|
+
"probability": 0.01119403
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"square_score_x": 4,
|
|
275
|
+
"square_score_y": 6,
|
|
276
|
+
"win_count": 34,
|
|
277
|
+
"probability": 0.010572139
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"square_score_x": 3,
|
|
281
|
+
"square_score_y": 4,
|
|
282
|
+
"win_count": 33,
|
|
283
|
+
"probability": 0.010261194
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"square_score_x": 3,
|
|
287
|
+
"square_score_y": 1,
|
|
288
|
+
"win_count": 33,
|
|
289
|
+
"probability": 0.010261194
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"square_score_x": 1,
|
|
293
|
+
"square_score_y": 0,
|
|
294
|
+
"win_count": 32,
|
|
295
|
+
"probability": 0.009950249
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"square_score_x": 7,
|
|
299
|
+
"square_score_y": 9,
|
|
300
|
+
"win_count": 31,
|
|
301
|
+
"probability": 0.009639303
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"square_score_x": 7,
|
|
305
|
+
"square_score_y": 1,
|
|
306
|
+
"win_count": 30,
|
|
307
|
+
"probability": 0.009328358
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"square_score_x": 0,
|
|
311
|
+
"square_score_y": 1,
|
|
312
|
+
"win_count": 29,
|
|
313
|
+
"probability": 0.009017413
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"square_score_x": 0,
|
|
317
|
+
"square_score_y": 8,
|
|
318
|
+
"win_count": 27,
|
|
319
|
+
"probability": 0.008395522
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"square_score_x": 9,
|
|
323
|
+
"square_score_y": 7,
|
|
324
|
+
"win_count": 26,
|
|
325
|
+
"probability": 0.008084577
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"square_score_x": 6,
|
|
329
|
+
"square_score_y": 4,
|
|
330
|
+
"win_count": 25,
|
|
331
|
+
"probability": 0.007773632
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"square_score_x": 1,
|
|
335
|
+
"square_score_y": 3,
|
|
336
|
+
"win_count": 23,
|
|
337
|
+
"probability": 0.007151741
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"square_score_x": 1,
|
|
341
|
+
"square_score_y": 4,
|
|
342
|
+
"win_count": 22,
|
|
343
|
+
"probability": 0.006840796
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"square_score_x": 4,
|
|
347
|
+
"square_score_y": 8,
|
|
348
|
+
"win_count": 21,
|
|
349
|
+
"probability": 0.006529851
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"square_score_x": 0,
|
|
353
|
+
"square_score_y": 5,
|
|
354
|
+
"win_count": 21,
|
|
355
|
+
"probability": 0.006529851
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"square_score_x": 6,
|
|
359
|
+
"square_score_y": 1,
|
|
360
|
+
"win_count": 21,
|
|
361
|
+
"probability": 0.006529851
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"square_score_x": 0,
|
|
365
|
+
"square_score_y": 2,
|
|
366
|
+
"win_count": 20,
|
|
367
|
+
"probability": 0.006218905
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"square_score_x": 7,
|
|
371
|
+
"square_score_y": 8,
|
|
372
|
+
"win_count": 18,
|
|
373
|
+
"probability": 0.005597015
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"square_score_x": 6,
|
|
377
|
+
"square_score_y": 6,
|
|
378
|
+
"win_count": 18,
|
|
379
|
+
"probability": 0.005597015
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"square_score_x": 1,
|
|
383
|
+
"square_score_y": 9,
|
|
384
|
+
"win_count": 17,
|
|
385
|
+
"probability": 0.00528607
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"square_score_x": 8,
|
|
389
|
+
"square_score_y": 0,
|
|
390
|
+
"win_count": 17,
|
|
391
|
+
"probability": 0.00528607
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"square_score_x": 9,
|
|
395
|
+
"square_score_y": 0,
|
|
396
|
+
"win_count": 16,
|
|
397
|
+
"probability": 0.004975124
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"square_score_x": 8,
|
|
401
|
+
"square_score_y": 7,
|
|
402
|
+
"win_count": 16,
|
|
403
|
+
"probability": 0.004975124
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"square_score_x": 2,
|
|
407
|
+
"square_score_y": 7,
|
|
408
|
+
"win_count": 16,
|
|
409
|
+
"probability": 0.004975124
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"square_score_x": 3,
|
|
413
|
+
"square_score_y": 9,
|
|
414
|
+
"win_count": 15,
|
|
415
|
+
"probability": 0.004664179
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"square_score_x": 1,
|
|
419
|
+
"square_score_y": 1,
|
|
420
|
+
"win_count": 15,
|
|
421
|
+
"probability": 0.004664179
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"square_score_x": 3,
|
|
425
|
+
"square_score_y": 8,
|
|
426
|
+
"win_count": 15,
|
|
427
|
+
"probability": 0.004664179
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"square_score_x": 6,
|
|
431
|
+
"square_score_y": 8,
|
|
432
|
+
"win_count": 14,
|
|
433
|
+
"probability": 0.004353234
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"square_score_x": 2,
|
|
437
|
+
"square_score_y": 3,
|
|
438
|
+
"win_count": 14,
|
|
439
|
+
"probability": 0.004353234
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"square_score_x": 5,
|
|
443
|
+
"square_score_y": 7,
|
|
444
|
+
"win_count": 14,
|
|
445
|
+
"probability": 0.004353234
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"square_score_x": 9,
|
|
449
|
+
"square_score_y": 3,
|
|
450
|
+
"win_count": 13,
|
|
451
|
+
"probability": 0.004042289
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"square_score_x": 1,
|
|
455
|
+
"square_score_y": 6,
|
|
456
|
+
"win_count": 13,
|
|
457
|
+
"probability": 0.004042289
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"square_score_x": 9,
|
|
461
|
+
"square_score_y": 4,
|
|
462
|
+
"win_count": 13,
|
|
463
|
+
"probability": 0.004042289
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"square_score_x": 6,
|
|
467
|
+
"square_score_y": 5,
|
|
468
|
+
"win_count": 12,
|
|
469
|
+
"probability": 0.003731343
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"square_score_x": 8,
|
|
473
|
+
"square_score_y": 1,
|
|
474
|
+
"win_count": 12,
|
|
475
|
+
"probability": 0.003731343
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"square_score_x": 5,
|
|
479
|
+
"square_score_y": 3,
|
|
480
|
+
"win_count": 12,
|
|
481
|
+
"probability": 0.003731343
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"square_score_x": 9,
|
|
485
|
+
"square_score_y": 6,
|
|
486
|
+
"win_count": 12,
|
|
487
|
+
"probability": 0.003731343
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"square_score_x": 3,
|
|
491
|
+
"square_score_y": 2,
|
|
492
|
+
"win_count": 11,
|
|
493
|
+
"probability": 0.003420398
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"square_score_x": 3,
|
|
497
|
+
"square_score_y": 5,
|
|
498
|
+
"win_count": 11,
|
|
499
|
+
"probability": 0.003420398
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"square_score_x": 2,
|
|
503
|
+
"square_score_y": 0,
|
|
504
|
+
"win_count": 11,
|
|
505
|
+
"probability": 0.003420398
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"square_score_x": 8,
|
|
509
|
+
"square_score_y": 4,
|
|
510
|
+
"win_count": 11,
|
|
511
|
+
"probability": 0.003420398
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"square_score_x": 4,
|
|
515
|
+
"square_score_y": 5,
|
|
516
|
+
"win_count": 10,
|
|
517
|
+
"probability": 0.003109453
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"square_score_x": 7,
|
|
521
|
+
"square_score_y": 5,
|
|
522
|
+
"win_count": 10,
|
|
523
|
+
"probability": 0.003109453
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"square_score_x": 7,
|
|
527
|
+
"square_score_y": 2,
|
|
528
|
+
"win_count": 10,
|
|
529
|
+
"probability": 0.003109453
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"square_score_x": 6,
|
|
533
|
+
"square_score_y": 9,
|
|
534
|
+
"win_count": 10,
|
|
535
|
+
"probability": 0.003109453
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"square_score_x": 2,
|
|
539
|
+
"square_score_y": 6,
|
|
540
|
+
"win_count": 10,
|
|
541
|
+
"probability": 0.003109453
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"square_score_x": 4,
|
|
545
|
+
"square_score_y": 9,
|
|
546
|
+
"win_count": 9,
|
|
547
|
+
"probability": 0.002798507
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"square_score_x": 1,
|
|
551
|
+
"square_score_y": 5,
|
|
552
|
+
"win_count": 8,
|
|
553
|
+
"probability": 0.002487562
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"square_score_x": 8,
|
|
557
|
+
"square_score_y": 3,
|
|
558
|
+
"win_count": 8,
|
|
559
|
+
"probability": 0.002487562
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"square_score_x": 1,
|
|
563
|
+
"square_score_y": 8,
|
|
564
|
+
"win_count": 8,
|
|
565
|
+
"probability": 0.002487562
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"square_score_x": 4,
|
|
569
|
+
"square_score_y": 2,
|
|
570
|
+
"win_count": 8,
|
|
571
|
+
"probability": 0.002487562
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"square_score_x": 5,
|
|
575
|
+
"square_score_y": 1,
|
|
576
|
+
"win_count": 8,
|
|
577
|
+
"probability": 0.002487562
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"square_score_x": 5,
|
|
581
|
+
"square_score_y": 0,
|
|
582
|
+
"win_count": 8,
|
|
583
|
+
"probability": 0.002487562
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"square_score_x": 9,
|
|
587
|
+
"square_score_y": 9,
|
|
588
|
+
"win_count": 7,
|
|
589
|
+
"probability": 0.002176617
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"square_score_x": 2,
|
|
593
|
+
"square_score_y": 8,
|
|
594
|
+
"win_count": 7,
|
|
595
|
+
"probability": 0.002176617
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"square_score_x": 8,
|
|
599
|
+
"square_score_y": 6,
|
|
600
|
+
"win_count": 7,
|
|
601
|
+
"probability": 0.002176617
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"square_score_x": 9,
|
|
605
|
+
"square_score_y": 1,
|
|
606
|
+
"win_count": 7,
|
|
607
|
+
"probability": 0.002176617
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"square_score_x": 6,
|
|
611
|
+
"square_score_y": 2,
|
|
612
|
+
"win_count": 7,
|
|
613
|
+
"probability": 0.002176617
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"square_score_x": 1,
|
|
617
|
+
"square_score_y": 2,
|
|
618
|
+
"win_count": 7,
|
|
619
|
+
"probability": 0.002176617
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"square_score_x": 2,
|
|
623
|
+
"square_score_y": 5,
|
|
624
|
+
"win_count": 6,
|
|
625
|
+
"probability": 0.001865672
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"square_score_x": 2,
|
|
629
|
+
"square_score_y": 1,
|
|
630
|
+
"win_count": 6,
|
|
631
|
+
"probability": 0.001865672
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"square_score_x": 8,
|
|
635
|
+
"square_score_y": 2,
|
|
636
|
+
"win_count": 6,
|
|
637
|
+
"probability": 0.001865672
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"square_score_x": 8,
|
|
641
|
+
"square_score_y": 9,
|
|
642
|
+
"win_count": 6,
|
|
643
|
+
"probability": 0.001865672
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"square_score_x": 2,
|
|
647
|
+
"square_score_y": 4,
|
|
648
|
+
"win_count": 6,
|
|
649
|
+
"probability": 0.001865672
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"square_score_x": 8,
|
|
653
|
+
"square_score_y": 5,
|
|
654
|
+
"win_count": 6,
|
|
655
|
+
"probability": 0.001865672
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"square_score_x": 5,
|
|
659
|
+
"square_score_y": 6,
|
|
660
|
+
"win_count": 6,
|
|
661
|
+
"probability": 0.001865672
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"square_score_x": 5,
|
|
665
|
+
"square_score_y": 8,
|
|
666
|
+
"win_count": 5,
|
|
667
|
+
"probability": 0.001554726
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"square_score_x": 9,
|
|
671
|
+
"square_score_y": 5,
|
|
672
|
+
"win_count": 4,
|
|
673
|
+
"probability": 0.001243781
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"square_score_x": 5,
|
|
677
|
+
"square_score_y": 4,
|
|
678
|
+
"win_count": 3,
|
|
679
|
+
"probability": 0.000932836
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"square_score_x": 9,
|
|
683
|
+
"square_score_y": 8,
|
|
684
|
+
"win_count": 3,
|
|
685
|
+
"probability": 0.000932836
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"square_score_x": 2,
|
|
689
|
+
"square_score_y": 9,
|
|
690
|
+
"win_count": 3,
|
|
691
|
+
"probability": 0.000932836
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"square_score_x": 5,
|
|
695
|
+
"square_score_y": 2,
|
|
696
|
+
"win_count": 3,
|
|
697
|
+
"probability": 0.000932836
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"square_score_x": 5,
|
|
701
|
+
"square_score_y": 9,
|
|
702
|
+
"win_count": 3,
|
|
703
|
+
"probability": 0.000932836
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"square_score_x": 8,
|
|
707
|
+
"square_score_y": 8,
|
|
708
|
+
"win_count": 3,
|
|
709
|
+
"probability": 0.000932836
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"square_score_x": 9,
|
|
713
|
+
"square_score_y": 2,
|
|
714
|
+
"win_count": 2,
|
|
715
|
+
"probability": 0.000621891
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"square_score_x": 2,
|
|
719
|
+
"square_score_y": 2,
|
|
720
|
+
"win_count": 1,
|
|
721
|
+
"probability": 0.000310945
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"square_score_x": 5,
|
|
725
|
+
"square_score_y": 5,
|
|
726
|
+
"win_count": 0,
|
|
727
|
+
"probability": 0
|
|
68
728
|
}
|
|
69
|
-
|
|
729
|
+
]
|
|
@@ -26,7 +26,6 @@ const BidForm = ({ player_id, width, market_type, home_abbr, away_abbr, submit_r
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
const renderBids = (data: { item:PlayerSquareProps, index:number }) => {
|
|
29
|
-
console.log('rending bids')
|
|
30
29
|
let square = squares.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
31
30
|
if(!square){ return ( <></> ) }
|
|
32
31
|
return (
|