ECS Arena QuadTree
ECS是𠁭,可以吃嗎? Arena , QuadTree 這東東又有何特別? 這次用30000個Particles來實驗一下下,有沒有廣告說的這麼強 !!!
[Read More]ECS是𠁭,可以吃嗎? Arena , QuadTree 這東東又有何特別? 這次用30000個Particles來實驗一下下,有沒有廣告說的這麼強 !!!
[Read More]這是一個簡單的使用raylib的遊戲,主要是用來練習raylib的基本功能。
因為是練習用,所脙會非常隨性,你可能會發現程式風格極為混亂!是的,我喜歡混亂,那代表著無限的可能性。
當然也會有無限的錯誤,請多多包涵。
為什麼用C語言來練習呢?C代表著最大程度的自由,你可以用任何你喜歡的方式來寫程式。
What you think. what you write code. NO LIMIT. NO strange RULES.
1. 前言
撲克牌遊戲,尤其是五張換手撲克,在全球廣受歡迎。了解遊戲中各種牌型出現的機率對於玩家制定策略至關重要。本報告旨在透過組合數學的方法,計算在一副標準的 52 張撲克牌中,隨機抽取 5 張牌時,形成各種特定牌型的自然機率,這些牌型已由使用者提供的 CardWinKind
陣列定義。本分析將基於標準的組合學原理,計算每種牌型的組合數量,並將其除以所有可能的五張牌組合總數,從而得出其發生的機率。本報告將詳細闡述每種牌型的計算過程,並總結其機率分佈。
為了方便繪圖測試,把sdl 3給加一層包裝,懶人專用… 使用例…
#include <stdlib.h>
#define LAZY_GRAPHIC_IMPLEMENTATION
#include "lazygraphic.h"
#include <math.h>
#include <time.h>
int main(int argc, char* argv[])
{
RGBA bkgColor = { .color = 0xFF181818 };
RGBA cirColor = { .color = 0xFF18D818 };
lazyGr.Init(800, 600, "LAZY !!");
srand(time(NULL));
while (!lazyGr.Done()) {
lazyGr.Clear(bkgColor);
for (int i = 0; i < 50; i++) {
int rx = rand() % 400;
int ry = rand() % 300;
int rr = rand() % 200;
cirColor.color = rand() | 0xFF000000;
lazyGr.Disk(400 - rr/2 + rx/2, 300 - rr/2 + ry/2 , rr, cirColor);
}
lazyGr.Update();
lazyGr.Delay(16);
}
lazyGr.Fini();
return 0;
}
** Gemini 2.0 Flash Thinking Experimental
Q:
顯示思路 The user is presenting a sequence of numbers on the left side of the equation and their corresponding values on the right side. The sequence is: 1 = 5 2 = 10 3 = 15 4 = 20 The user is asking to determine the value for 5 = ?.
[Read More]Learning Zig programming language …
Line effect for learning zig’s struct random and raylib implementation ect.
Learning Zig programming language …
Particle effect for learning zig’s struct random and raylib implementation ect.