triangle chess
这个三角棋,是一个双人对战的棋类游戏,黑白双方轮流下子,然后最终(旗子铺满所有可落子的点后),数一数谁围成的正三角形多,谁就获胜。这里的正三角形可以是变成1个单位的,也可以是更大的,所以还是有一定的变化性的。如果开启了“高级模式”,斜的正三角形甚至也能算在里面。
点子其实是几年前就想到了,当时是想和小学生的娃下棋,在卡纸上画过一个棋盘,用笔下棋,然后手工数结果,就当让娃练习一下对几何图形的敏感性了。也确实下过几盘,还有点好玩的。
其实那时候就试着写过一个web页面,想把这些逻辑程序化,但其实真去手工画图,发现还有点麻烦,后来就没做出来,就这么放了几年。
最近,大家都在说cursor如何如何好用,小学生都能用它写个像模像样的小游戏,于是也就下载下来试试。在想让它写个啥的时候,突然就看到之前写了一半的代码,于是。。。就写出了现在这个还算完整的版本。
cursor写代码确实方便,配合 claude-3.5-sonnet,基本上真的是自然语言编程了,小修改也都是“tab到底”,科技发展确实日新月异了。
更要命的是,我让AI写了个“人机”,稍微调整一下策略之后,发现这不到一百行JS代码的人机居然还挺强的,虽然每次都只考虑一步,但已经不是随随便便都下赢的了。不信的话,大家可以试试。
Enjoy!
依云 在 2024年10月04日 11:10 说:【 】
于是我去看了一下这个 Cursor 的主页,里边有一些视频演示,然后看到了很可怕的代码:原本是循环一项一项往数据库里插入数据的,提示让它改成并行,于是 Cursor 给上了个线程池,共享同一个数据库的 cursor……首先这并行化的想法就不对,应该改成批量;然后,没什么 Python 数据库的 driver 是支持 cursor 的 thread safety 的——一般得每个线程一个连接。
bones7456 在 2024年10月04日 18:11 说:【 】
哈哈哈,你看得可真仔细呀!如果真的发生了这种事情,你是可以reject它的修改的,然后告诉他不要用线程池,而是采用合并SQL的方式来实现。把它看成一个助手是可以的,但不能都听它的~
natyajnie potolki_ucSn 在 2025年05月29日 11:12 说:【 】
устройство натяжного потолка http://potolkilipetsk.ru .
Xazrxkz 在 2025年05月30日 18:25 说:【 】
Заказать диплом о высшем образовании!
Мы изготавливаем дипломы любой профессии по приятным тарифам. Вы заказываете документ через надежную компанию. : elion.forumex.ru/viewtopic.phpf=110&t=677
Dnrtvtd 在 2025年06月05日 01:41 说:【 】
Мы предлагаем дипломы любой профессии по приятным тарифам. Мы готовы предложить документы ВУЗов, расположенных в любом регионе РФ. Дипломы и аттестаты выпускаются на “правильной” бумаге самого высокого качества. Это позволяет делать государственные дипломы, не отличимые от оригиналов. [url=http://orikdok-v-gorode-nizhniy-novgorod-52.online/]orikdok-v-gorode-nizhniy-novgorod-52.online[/url]
BulgRob 在 2025年06月05日 07:54 说:【 】
Мы оказываем услуги по получению [url=https://libertyfintravel.ru/grajdanstvo-bolgarii][b]гражданства Болгарии[/b][/url]: https://libertyfintravel.ru/grajdanstvo-bolgarii
Полное юридическое сопровождение, договор, гарантии!
Просто свяжитесь с нами: [url=https://t.me/LibFinTravel][b]Telergam[/b][/url]
We provide services for obtaining citizenship of Bulgari. Full legal support, contract, guarantees. Just [url=https://t.me/LibFinTravel][b]contact us![/b][/url]
Albertnum 在 2025年06月05日 12:07 说:【 】
find out here now [url=https://keplr-extension.com]keplr Download[/url]
Mazrwuk 在 2025年06月07日 01:11 说:【 】
Мы изготавливаем дипломы любой профессии по доступным ценам. Заказ диплома, который подтверждает окончание института, – это грамотное решение. Купить диплом любого университета: [url=http://zhapro.com/blogs/34459/Реальные-отзывы-о-покупке-дипломов/]zhapro.com/blogs/34459/Реальные-отзывы-о-покупке-дипломов[/url]
Irhabarpiododilk 在 2025年06月10日 21:06 说:【 】
Men are inclined to ask fewer questions than communication in which both parties can ladies, particularly if the person perceives that give and receive feedback. Birth Defects • List the structural delivery defect(s) • Indicate if the defect(s), was attributed to the antiviral therapy by recording: o 1 for Yes o 2 for No o three for Unknown • Indicate other elements that may have contributed to this consequence by recording: o 1 for Maternal Age o 2 for Unknown o three for Other, specify. Prophylactic antibiotics should be thought-about significantly in sufferers with neutropenia treatment borderline personality disorder [url=https://www.addiibiotech.com/order/arava.html]purchase arava 10 mg online[/url].
The median age of onset is in the mid-fifties, and the illness is more frequent in males and in blacks. Radiation therapy as palliative therapy to cease bleeding, relieve pain, or shrink a tumor that’s blocking the abdomen. Het foamwondverband magazine niet met kracht in delen van de wond worden aangebracht, omdat dit het weefsel kan beschadigen, de toediening van negatieve druk kan wijzigen of verwijdering van exsudaat en foam kan belemmeren medications restless leg syndrome [url=https://www.addiibiotech.com/order/alphagan.html]cost of alphagan[/url]. The thyroglossal duct, which is later obliterinclude: ated, connects the thyroid diverticulum to the foregut that i. Either there may be substantial genetic heterogeneity with a number of etiologically distinct types of the disorder, or the tremendousп¬Ѓcially related phenotype really reflects a extra uniп¬Ѓed, broad genetic vulnerability to panic and anxiety. En l absence de risques infectieux pour les collectivites et dans le souci de preserver le secret medical, aucune info specifque n est donnee aux structures d accueil des nourrissons (creches, assistantes maternelles, haltes-garderies) prostate 3 3 [url=https://www.addiibiotech.com/order/fincar.html]5 mg fincar amex[/url]. A diagnostic indicator of abdomen yin vacuity is a pink tongue without tongue fur, espeVegetables Cauliflower, napa (Chinese) cially within the middle of the tongue, which represents cabbage cucumbers, waterthe stomach space. The first example shows services supplied by a physician and the second instance exhibits facility care billed by an ambulatory surgical facility. Signs of major an infection or congenital heart Symptoms usually develop insidiously antibiotics for acne how long [url=https://www.addiibiotech.com/order/chloramphenicol.html]buy chloramphenicol in india[/url].
The liver is important in eradicating toxins from the blood, producing blood clotting proteins, and serving to the body to digest food and use medicines. A totally developed material, cholesterol clefts, fibrin, necrotic particles and lipidatherosclerotic lesion is called atheromatous plaque, additionally laden foam cells. Patients should then be followed up for 7 days following the end of the observational interval to find out if a biphasic response has occurred and the results of any response blood pressure what is normal [url=https://www.addiibiotech.com/order/calan.html]order genuine calan line[/url].
MarioJuh 在 2025年06月14日 14:14 说:【 】
hop over to this site [url=https://archetyp-darknet-market.com/]Polskie linki darkweb[/url]
Jariorvek 在 2025年06月14日 21:55 说:【 】
Наши специалисты предлагают выгодно и быстро заказать диплом, который выполнен на оригинальном бланке и заверен печатями, штампами, подписями официальных лиц. Диплом пройдет лубую проверку, даже при помощи специфических приборов. analyticsjobs.in/jobs/companies/archive-diploma
MelindaShaby 在 2025年06月15日 08:53 说:【 】
payday loan cash advances is a fast and hassle-free way to secure the funds you need. With a simple application process, you can get loans online from the comfort of your home, avoiding lengthy paperwork. Online lenders offer competitive rates and quick approvals, ensuring you receive the money promptly. Experience the convenience and efficiency of getting loans online and meet your financial needs with ease.
Mazrivp 在 2025年06月15日 13:04 说:【 】
Мы готовы предложить дипломы любой профессии по выгодным тарифам. Приобретение документа, который подтверждает окончание института, – это разумное решение. Купить диплом о высшем образовании: censornet.ru/top-5-saytov-dlya-zakaza-diploma-onlayn
Lazrkpi 在 2025年06月16日 18:45 说:【 】
Быстро приобрести диплом о высшем образовании!
Мы можем предложить дипломы психологов, юристов, экономистов и других профессий по разумным тарифам— diplomdoc.ru
Sergiorhymn 在 2025年06月18日 04:45 说:【 】
Откройте трендовые предложения в нашем интернет-магазине. Мы предоставляем лучшие товары для успешного завершения задач по https://gogs.k4be.pl/bernardmeacham/2784kraken-api-express/wiki/KRAKEN%253A+%25D1%2584%25D0%25BB%25D0%25BE%25D1%2582%25D0%25B8%25D0%25BB%25D0%25B8%25D1%258F+%25D0%25B2%25D1%258B%25D0%25B3%25D0%25BE%25D0%25B4%25D0%25BD%25D1%258B%25D1%2585+%25D0%25BF%25D1%2580%25D0%25B5%25D0%25B4%25D0%25BB%25D0%25BE%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B9+%25D0%25BD%25D0%25B0+%25D0%25B3%25D0%25BE%25D1%2580%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25BD%25D1%2582%25D0%25B5
Robertsoupe 在 2025年06月18日 12:19 说:【 】
Get More Info https://machfi.org