Have you tried reading the docs on the @truffle/contract docs?
There are several steps to do before including the truffle-contract.min.js file in the index.html.
var arr = [0, 0, 1602907512, 1602907764, 1602907512, 1602907764, 60000000, 90000000];
var outcomeArr = ;
var tempCounter = 0;
let MyContractOutput= await MyContract.methods.getPlayerDeposit(<Give an address>).call();
By this way, you get the result like this:
In order that you ...
I assume you want to convert the BigNumber into a normal number, you can do that by:
A safer way to to that is to keep the number in String, if you don't want to do any additions or ...
MetaMask does not provide a way to get the private key through code by design. Any interaction with accounts in MetaMask has to be done through the Web3 API, to prevent a (malicious) website from stealing a user's private keys.