- 2 or more players.
- 1 or more standard 52-card decks, each with 0-2 jokers.
- Aces have a value of 1.
- Face cards and jokers have a value of 10.
- Everything else is face-value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- LocalScript; Parent = ReplicatedFirst | |
| -- Adornments not supported. | |
| local WoodReviewerUserIDs = { | |
| [102925343] = true, | |
| } | |
| if not WoodReviewerUserIDs[game:GetService("Players").LocalPlayer.UserId] then | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hist | |
| type Value interface{} | |
| // Implements both an undo and redo stack using a circular buffer. | |
| type HistoryStack struct { | |
| buffer []Value | |
| head, tail, cur int | |
| ud, rd bool | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original: | |
| <string name="Name">TEST</string> | |
| Result Status: | |
| pass file loads, property value is "TEST" | |
| load file loads, property value is default value | |
| fail file does not load, with an error message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Replaces Roblox Studio's splash screen with another image. | |
| -- | |
| -- Usage: | |
| -- | |
| -- lua splash-patch.lua [STUDIO_PATH] [IMAGE_PATH] | |
| -- | |
| -- Specifying no options prompts for input. | |
| -- First KB of original splash image file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local encodeByte = { | |
| 'A','B','C','D','E','F','G','H', | |
| 'I','J','K','L','M','N','O','P', | |
| 'Q','R','S','T','U','V','W','X', | |
| 'Y','Z','a','b','c','d','e','f', | |
| 'g','h','i','j','k','l','m','n', | |
| 'o','p','q','r','s','t','u','v', | |
| 'w','x','y','z','0','1','2','3', | |
| '4','5','6','7','8','9','-','_', | |
| } |
ROBLOX provides many value types other than the Lua primitives, so it should
be possible to distinguish these types beyond Lua userdata. Like the type
function, a similar function which distinguishes these types should be
implemented. Such a function could be used to enforce stricter typing of
values, improving error detection and logging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fast(f) | |
| local function run() | |
| if f() ~= false then | |
| Spawn(run) | |
| end | |
| end | |
| Spawn(run) | |
| end | |
| local time = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- LOVE2D 0.9.0 | |
| -- main.lua | |
| -- Left-click somewhere to add point | |
| -- Left-click and drag green point to move it | |
| -- Right-click green point to remove it | |
| -- Left-click and drag red point to modify starting angle | |
| -- Backspace to remove all points | |
| local Vector2;Vector2 = { |