d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > 1000 Fg For Help Making A Script In Matlab
12Next
Add Reply New Topic New Poll
Member
Posts: 27,290
Joined: Apr 7 2007
Gold: 22,908.00
May 3 2015 04:47pm
I have access to mathematica, or matlab 2014. I have never used mathematica so matlab would be preferred. I am not too experienced with matlab, but I have used it before. Willing to pay 1000 fg if you work with me to get my script to work.

Long story short I need to simulate a bunch of games of shut the box, here is the link to its wikipedia with the rules http://en.wikipedia.org/wiki/Shut_the_Box. I am going to be looking at the percent chance to win using different strategies. I need to do at least two different strategies, but three would be ideal. The first strategy would be to pick the highest number that you can use. The second strategy would be to use the most amount of numbers that you can per turn. The third would be to try to use combinations of mid value numbers. This last one being the most difficult to program I would assume and I can live without getting it to work. I am sure this is a bit confusing so please post questions. I will summarize the main programing tricks that you will need to use below. If you think you are capable of writing a code like this I will give you a more detailed explanation of the strategies.

Simulate two dice being rolled
Pick which numbers to use depending on the strategy that is being simulated
not use the numbers picked for the rest of that given game
Count the number of wins ( used all numbers 1-9) and losses (you do not have numbers that sum up to the number rolled)
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 3 2015 05:10pm
if you have a particular question/problem, post it here along with your code.
Member
Posts: 27,290
Joined: Apr 7 2007
Gold: 22,908.00
May 3 2015 05:58pm
Quote (carteblanche @ May 3 2015 06:10pm)
if you have a particular question/problem, post it here along with your code.


I have no code yet, and im not good enough to give it much of a go myself. This isn't for homework this is for a personal thing I do not have criteria i need to meet.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 3 2015 06:09pm
if it's your own project, seems weird that you wanna use matlab when you're not even comfortable with matlab. it certainly wouldn't be my first choice for multiple reasons (2000$ license, proprietary software, unnecessary for your goals, less popular than alternatives, etc)

*shrug* have fun.
Member
Posts: 27,290
Joined: Apr 7 2007
Gold: 22,908.00
May 3 2015 06:58pm
Its all I have access to, if there is a free \ cheap better option feel free to suggest it
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 3 2015 07:11pm
Quote (HaloGod @ May 3 2015 08:58pm)
Its all I have access to, if there is a free \ cheap better option feel free to suggest it


mathmatically, whats the most complex function you have to perform? i glossed over the wiki article and i'm not seeing anything more complex than +,-,/,* and if that's the case, any language will work. i'd suggest python or java, but c, c++, javascript, etc can do it as well.

whereas if you need to do symbolic integration, compute user input directly, etc than maybe matlab/mathematica is a good choice

This post was edited by carteblanche on May 3 2015 07:12pm
Member
Posts: 27,290
Joined: Apr 7 2007
Gold: 22,908.00
May 3 2015 07:17pm
its all multiplication and addition. Also are any of those free \ cheap? If you want to code it for the 1k fg in a language I can get that is fine with me.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 3 2015 07:25pm
they're all free, and more people on the forums know them than matlab.

personally, i'm not interested in doing assignments. post questions with your code and i'll probably provide help. i haven't touched matlab in 5-7 years since college, so i'm less comfortable with it but can probably provide insight into your problems regardless.
Member
Posts: 27,290
Joined: Apr 7 2007
Gold: 22,908.00
May 3 2015 07:26pm
im pretty new at coding and dont even know how to start, I might just repost tomorrow with a different title saying im open to them all ty

This post was edited by HaloGod on May 3 2015 07:27pm
Member
Posts: 6,007
Joined: Jul 22 2010
Gold: 337.21
May 4 2015 06:33am
why not do it in excel?
Go Back To Homework Help Topic List
12Next
Add Reply New Topic New Poll