## Coin Flip This is a coin flipping game where you need to build up your winning streak by guessing the outcome of a coin flip. To complete this level you'll need to use your psychic abilities to guess the correct outcome 10 times in a row. ```solidity // SPDX-License-Identifier: MIT pragma ever-solidity >= 0.71.0; interface Resolvable { function isSolved() external view returns (bool); } interface CoinFlip { function flip(bool) external responsible returns (bool); } contract Challenge is Resolvable, CoinFlip { uint4 public count; constructor() { require(tvm.pubkey() != 0, 101); require(msg.pubkey() == tvm.pubkey(), 102); tvm.accept(); count = 0; } function flip(bool guess) external responsible returns (bool) { uint8 coinFlip = rnd.next(100); bool side = coinFlip > 50 ? true : false; if (side == guess) { count++; } else { count = 0; } return {value: 0, bounce: false, flag: 64} side; } function isSolved() external view returns (bool) { return count >= 10; } } ``` ## Note - https://www.google.com/search?q=paradigm+ctf+2023 - https://github.com/paradigmxyz/paradigm-ctf-infrastructure - https://github.com/Zellic/example-ctf-challenge - https://github.com/paradigmxyz/paradigm-ctf-2022 - https://medium.com/amber-group/web3-hacking-paradigm-ctf-2022-writeup-3102944fd6f5 - 0xMonaco - https://github.com/saucepoint/0xMonaco - https://hackmd.io/@onemanbandplus2/S1Ez1Ulys - https://hackmd.io/@t11s/monaco-elo - https://www.damnvulnerabledefi.xyz/ - https://capturetheether.com/ - https://cryptohack.org/ - https://www.useweb3.xyz/code-challenges - https://ethernaut.openzeppelin.com/