A short introduction to working with the TruCol protocol
Documentation is here, video instructions is here (starts at 1:34). The following installations are written for a Linux system:
sudo apt install npm
sudo npm install -g truffle
truffle test
Besides the automated testing using Truffle, you can also manually test your smart contracts. To do so you can look at AskContract which consists of a square root problem and the SolveContract which is able to solve the problem.
Test:
TestRefund:
Note that only the owner of the contract (which is the person who either created or solved the contract) can activate the refund function.