Skip to content

Instantly share code, notes, and snippets.

@starise
Forked from brfreeman36/paperclips.js
Created October 17, 2017 13:03
Show Gist options
  • Save starise/9cc936f1d8157a2d2e57bf198633f9ce to your computer and use it in GitHub Desktop.
Save starise/9cc936f1d8157a2d2e57bf198633f9ce to your computer and use it in GitHub Desktop.
Paperclips
var loop = setInterval(function(){
clipClick(1);
buyingWire();
letsQuantumCompute();
runTournament();
}, 2)
function buyingWire(){
//if (wireCost < wireBasePrice && wire < 1000000 || wire < 1){ // Not working well for early game
if (wire < 1){
buyWire(); // Game defined function
}
}
function runTournament(){
if (document.getElementById("btnNewTournament").disabled == false && (memory * 1000) <= operations){
newTourney();
runTourney();
}
}
function letsQuantumCompute(){
if (qChips[0].value + qChips[1].value + qChips[2].value + qChips[3].value + qChips[4].value + qChips[5].value + qChips[6].value + qChips[7].value + qChips[8].value + qChips[9].value > 0){
qComp();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment