Basic demonstration of an oracle-based smart contract using bitcoin script, with links and resources.
https://tinyurl.com/btc-script-workshop/
Open oracle.html in your favorite browser. Open TWO copies of players.html (copy 1, copy 2) in TWO DIFFERENT BROWSERS. Then open the developer console (ctrl+shift+i on chrome and firefox) in each copy of players.html. Click Play in both and follow the instructions.
https://www.youtube.com/watch?v=cHLXK5HjCVg
Nick Szabo, “Smart Contracts: Building Blocks for Digital Markets,” 1996
https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart_contracts_2.html
Andreas Antonopoulos, “Mastering Bitcoin,” 2014
https://github.com/bitcoinbook/bitcoinbook/
Andreas Antonopoulos, “Advanced Bitcoin Scripting -- Part 1: Transactions & Multisig,” 2017
https://www.youtube.com/watch?v=8FeAXjkmDcQ
Bitcoin Wiki, “Script,” 2021
https://en.bitcoin.it/wiki/Script