Jump to content
code34

OO POKER - play to poker Texas Holdem in Arma

Recommended Posts

OO POKER
Lastest version: 0.1 by Code34

 

Description
OO Poker is a class (object oriented) that permits to play texas holdem poker in A3.

 

Like to Donate ? Donate with paypal

 

Github: https://github.com/code34/oo_poker.altis

Download: https://github.com/code34/oo_poker.altis/archive/master.zip

Reference: http://forums.bistudio.com/showthread.php?167980-Object-Oriented-SQF-Scripting-and-Compiling

Features:

- Drawing of cards to several players

 

Licence:
Under Gpl, you can share, modify, distribute this script but don't remove the licence and the name of the original author

Documentation:

	/*
	Author: code34 nicolas_boiteux@yahoo.fr
	Copyright (C) 2016-2018 Nicolas BOITEUX

	CLASS OO_POKER
	
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>. 
	*/

	--------------------------------------------------------------------------------------------------------------

	Function:  _poker = ["new", ["nameofplayer1", "nameofplayer2"]] call OO_POKER;
	Create a new poker object
		
	Parameters: 
		array containing the name of players

Readme:

 

	/*
	Author: code34 nicolas_boiteux@yahoo.fr
	Copyright (C) 2016-2018 Nicolas BOITEUX

	CLASS OO_POKER
	
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>. 
	*/

	Create a main bus message between clients & server
	
	Usage:
		put the "oo_poker.sqf" and the "oop.h" files in your mission directory
		put this code into your mission init.sqf
		call compilefinal preprocessFileLineNumbers "oo_poker.sqf";

	See example mission in directory: init.sqf
	
	Licence: 
	You can share, modify, distribute this script but don't remove the licence and the name of the original author

	logs:
		0.1 	- OO POKER - first release



Examples

		call compilefinal preprocessFileLineNumbers "oo_poker.sqf";

		sleep 2;

		 poker = ["new", ["code34", "computer", "Jamy"]] call OO_POKER;
		 player addAction ["Distribute cards", {'distributeCards' call poker;}];

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

 

Just release the first version of this scipt that i developped today.  For the moment, i only made the drawning of cards in local mode.

 

if you are interested by,dont hesitate to say me i will improve it .

 

Im bored to build UI, if someone is interested to made it, it will be very appreciated :don15:

 

For better undestanding of results encoding translation :

 

14 => As

13 => King

12 => Queen

11 => Joker

 

tile => K

clover => T

heart => C

pike => P

 

 

 

Share this post


Link to post
Share on other sites

Hey Foxhound !

 

Thank you for your help :)

Share this post


Link to post
Share on other sites
9 hours ago, code34 said:

		call compilefinal preprocessFileLineNumbers "oo_poker.sqf";

		sleep 2;

		 poker = ["new", ["code34", "computer", "Jamy"]] call OO_POKER;
		 player addAction ["Distribute cards", {'distributeCards' call poker;}];

 

compileFinal doesn't make any sense if you don't store the result in a variable. I see more and more people doing this recently.

Share this post


Link to post
Share on other sites

You are right, i just check. There is no any kind of effect. I overwrite the object without difficulty with a dummy string.

 

Think it works differently until this day, it s positive that other read your code :)

Share this post


Link to post
Share on other sites

Wow. I remember having this idea a while back. I thought it would be great to have in-game timekillers since sometimes you spend a long time waiting around. It would be awesome if you could play poker or dice or something like that in-game at a base while waiting for something to happen. It would add a lot of atmosphere to have something like a Grad rocket strike interrupt your card game that you're having with your buddies in a bunker.

 

I'm not the greatest scripter or GUI maker so I never took up the project, but I'm glad that someone is. I wish you the best of luck.

Share this post


Link to post
Share on other sites
10 hours ago, Lindesity said:

I'm excited to help you out.

 

With what?

Share this post


Link to post
Share on other sites
On 10/3/2023 at 1:34 PM, Harzach said:

 

With what?

Obvious bot is obvious. Reported.

 

Edit: Reported it, not you ofc 🙂 obvious semantics are not so obvious.

Share this post


Link to post
Share on other sites
50 minutes ago, mrcurry said:

Obvious bot is obvious. Reported.

 

Edit: Reported it, not you ofc 🙂 obvious semantics are not so obvious.

 

Oh, I reported all three!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×