User talk:4096.256.16.1/poker/deck

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

How exactly do you want to use the choose tag? I'm mildly confuzzled. - [12:03 31 July] Sir FSt Don MafiaHatBlack.gif Yettie

Its still a concept, but essentially it will have to be blackjack... dealt two card, they are added, the dealers are added and then your score is the difference... MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex
I don't really know blackjack rules, I'm sorry to say. What specifically do you want me to do here? - [08:41 1 August] Sir FSt Don MafiaHatBlack.gif Yettie
Aim of blackjack get as close to 21 as possible, without going over. Simple as pi.


There needs to be:

  • Players hand (template or whatever, so that 2 cards are randomly chosen from the deck)
  • Dealers hand (same as for player, maybe with a bit of rigging)
  • An equation that adds your two cards, the dealers two cards, and then determines who has the highest (it's impossible to bust in 2 cards see the wiki help page for some ideas, however I'm not sure if it could work that way)
  • Something to display the results...

I don't know if you can include the option to be dealt another card, perhaps we can a)limit the deck or b) find an excuse for only having two cards) MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

As far as I know that's impossible using wiki coding alone. - [09:53 1 August] Sir FSt Don MafiaHatBlack.gif Yettie
You could be right, but I think there is a way to do it... Just wait. I'll investigate it for The Family MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex


Here's how it may work. <choose> a number from 1-10, with J,Q,K,A in there as well for picture cards. Another <Choose> to determine the suit (primarily aesthetics). Then, a {{#expr:{{Number}} + {{Number}} }}, where {{Number}} is the same as the cards you receive. There may be an intermediary template needed to prevent variations in these two sets of figures. Another {{#expr:{{Number}} - {{Number}} for the dealer, and an {{#expr: somehow gets both the numbers from the deal}}, which gives you a score. Eg: You are dealt 9♠ and K♥, a total of 19. Dealer gets Q♣ and K♥, a total of 20. The maths works out the difference, and you get a score of -1. Does that makes sense? MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

How would you automatically manage to get the number from the choose template to the expr? I understood the rest - that's the bit I think is going to be hard. - [10:17 1 August] Sir FSt Don MafiaHatBlack.gif Yettie

User:Nintendorulez/slots is another option, If we want to map out each hand (or say a few) and assign each a value for the calculation. I'd be willing to put in the grunt hours for that one. MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

Go for it! - [12:32 1 August] Sir FSt Don MafiaHatBlack.gif Yettie
OK, here's where I may need some snowmobile assistance. I Will map out the hands you can be dealt over the next few weeks. They will essentially be
{{Card 1}} {{suit}} {{Card 2}} {{suit}} <font color=white> Value of Hand </font> A Link to that hand plus another <choose> card (so you can be dealt another card)


Do you have any suggestions or any way of making it easier?MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

Instead of using white font how about putting the value in an invisible comment? Like this: <!--HELLO!! I'M INVISIBLE!! HA HA!-->. - [08:16 2 August] Sir FSt Don MafiaHatBlack.gif Yettie
That's Why You're the Don... Can MediaWiki Mimic Microsoft Excel? Because I made a proof of concept in Excel, but I'm not sure if it can be replicated in infernal MediaWiki.... MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex
Well what functions did you use in excel? - [08:39 2 August] Sir FSt Don MafiaHatBlack.gif Yettie
Do you want me to email you the .xls file? I'd be happy to let you peruse it. Or is anonymity too important for you? MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex
See if you did that I would have to do work...And my anonymity is important! Why don't I just let you get on with creating all those different possibilities. Eh? :-) The way you've suggested, where both cards and the value are combined could work. Just takes lots of work. I'm not sure about the deal another card thing...I guess it could work. - [09:06 2 August] Sir FSt Don MafiaHatBlack.gif Yettie

How's that?? MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

But what about suits, eheheh?? - [10:42 2 August] Sir FSt Don MafiaHatBlack.gif Yettie
I'll go through and just add random suits. Screw another choose, I'll add values as well for the #expr. Before I do, I want to test it works. Thanks for keeping an eye on this. And BTW: I have secured many images for our Mafia HQ, specifically the Shooting Range. On that note, is it possible to link an image to a page, instead of that image's page? I have seen it done in sigs... I'll keep an eye out for it, and filch the code from them if you don't know. MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex
Aye tis, tis possible. You have to put it in an external link tag and put the url of the image you want. However, you can't change its size. Unless! You use the imagemap tag, then you should be able to. - [09:36 3 August] Sir FSt Don MafiaHatBlack.gif Yettie
You'll notice my sig hat does it! Wonderful! (Add more Images, one for each Rank or so, they're just awesome). :::I plan to have a sniper section, where you have to shoot the correct window containing the target. Maybe choose will happen, maybe it won't. But it's on the back burner for now. I need to get other stuff done. MafiaHatBlack.gif Mr. Lavrenti "Digits" Hex

Good Work![edit source]

This is looking fantastic. When you think you're finished I may have to pay you a large sum of $$$. Be warned. - [16:08 1 September] Sir FSt Don MafiaHatBlack.gif Yettie