// Define styles const styles = { container: { backgroundColor: 'white', fontFamily: 'Helvetica', //height: "150px", margin: '0 auto 0 auto', width: '90%' }, bucketRow: { width: '100%', height: "75px", margin: '5% 0% 0% 0%', position: 'relative' }, headerRow: { width: '100%', height: "5px", margin: '0% 0% 0% 0%', position: 'relative' }, slipRow: { width: '100%', height: "25px", margin: '4% 0% 0% 0%', position: 'relative' }, slip: { position:"absolute", left:"44%", // Was 44% height: "25px", width: "15%", // Was 15% minWidth: "45px", background: "white", border: "1px solid grey", display: "flex", justifyContent: "center", alignItems: "center", color: 'black', //fontSize: "200%", fontWeight: "50", } }; // Create class class ShellGame extends React.Component { constructor(props) { super(props); this.state = {wtp: -100} // Bind Functions } getBuckets() { const buckets = Array.from({length: this.props.payoffs.length}); if (buckets.length == 2) { buckets[0] = "L" buckets[1] = "R" } else { buckets.map( (val, idx) => { buckets[idx] = idx return (<>>); }) } let width = (90 / buckets.length)// Same for all shells let addId = "" if (this.props.verification == true) { addId="_verify" } return (
{/*