[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Your move /g/.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 62
Thread images: 14
File: Untitled.png (15 KB, 563x525) Image search: [Google]
Untitled.png
15 KB, 563x525
Your move /g/.
>>
>>55580610
7E->5E
>>
>>55580616
this
>>
>>55580621
This.
>>
File: Untitled.png (21 KB, 559x525) Image search: [Google]
Untitled.png
21 KB, 559x525
>>55580616
>>55580621
>>
>>55580647
7H -> 5H
>>
Mind sharing it?
>>
>>55580677
Shhhh. Game in progress.
>>
File: Untitled.png (15 KB, 564x522) Image search: [Google]
Untitled.png
15 KB, 564x522
>>55580661
>>
Forest, Nettle Sentinel
>>
>>55580693
8H->6H
>>55580661
>>
File: Untitled.png (15 KB, 552x528) Image search: [Google]
Untitled.png
15 KB, 552x528
>>55580704
>>
>>55580728
>To continue playing please insert one link to the source
>>
>>55580748

the source is a half baked spaghetti mess from my first year in programming , you probably don't want it.
>>
>>55580728
G8 -> 7H
>>
>>55580610
Where is this from OP?
>>
>>55580768
I would love the chance to see if my first year (current) spaghetti mess looks anything like anyone elses. I only ever see clean code and this looks cool as hell
>>
>>55580769

that is not a valid movement you dummy.
>>
>>55580796
F8 -> 4B then
>>
>>55580768
I want to see it so I can rewrite it and see how much more concise my implementation is.

Also to check if it has edge-case shit like castling
>>
File: Untitled.png (16 KB, 558x522) Image search: [Google]
Untitled.png
16 KB, 558x522
>>55580769
>>
>>55580792
>>55580820

don't say I didn't warn you

http://pastebin.com/Bwn3bEhT
>>
>>55580838
>a single 2 KLOC C++ file
wew
>>
>>55580838
Thanks, this is great. Can't really look into it for a few hours yet so can't comment
>>
>>55580838

Holy god damn
>>
>>55580825
>>55580796
wait so we can just make them move where we want?

>>55580851
>one function
whoa
>>
>>55580838
Please tell me you don't still indent like this
>>
>>55580838
>those position checks to chose background "color"
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

cute though
>>
>>55580825
>that pawn structure

you can at least give the random anons some handicap.
>>
One thought, OP. The visual representation of the board might be more complicated than a simple 8x8 char table, but it looks ugly as all hell.
>>
>>55580825
>>55580769

look at what you did
>>
>>55580936
>>55580825
7B -> 1E
>>
File: Untitled.png (26 KB, 600x660) Image search: [Google]
Untitled.png
26 KB, 600x660
>>55580956

sorry man, pawns were the only piece my past self coded movement rules for.
>>
>>55580869
>>55580879
>implying you never programmed like this
>implying you have ever even programmed

Takes balls to release your own learning-era code but OP did
>>
>>55580984
8D -> 1C
>>
File: 21457990_p0.jpg (281 KB, 450x642) Image search: [Google]
21457990_p0.jpg
281 KB, 450x642
>>55581040
This. Thanks for the nostalgia OP
>>
>>55580838

All things considered, I should rewrite it and finish it. For completeness sake.
>>
>>55580610
D5
>>
File: Untitled.png (16 KB, 560x514) Image search: [Google]
Untitled.png
16 KB, 560x514
>>55581056
>>
>>55580610
https://en.m.wikipedia.org/wiki/Chess_notation
You fucked up OP
>>
File: 00-front.jpg (43 KB, 600x595) Image search: [Google]
00-front.jpg
43 KB, 600x595
>>55580610
>>
>>55581113
1C -> 1D
curious what happens in the end
>>
File: Untitled.png (49 KB, 912x518) Image search: [Google]
Untitled.png
49 KB, 912x518
>>55581113

not really
>>
File: Untitled.png (17 KB, 580x591) Image search: [Google]
Untitled.png
17 KB, 580x591
>>55581131

Kinda anticlimactic
>>
For the towers, perhaps the top should be this:
¯_¯

The " ¯ " code is 238.
>>
>>55580879

>2016

>caring about indentation

http://format.krzaq.cc/
>>
>>55581190
Ragequit
>>
>>55580610
>>55580838
I'm comin' for ya OP
>>
File: 1304887581266.png (89 KB, 297x321) Image search: [Google]
1304887581266.png
89 KB, 297x321
>>55582534

Well I'll be damned
>>
>>55582534

Actually, pretty cool. Share?
>>
>>55581190

you forgot the coordinates senpai
>>
>>55582782
>Share?

you're the cancer killing independent coders.
Want a professional-grade software? You have to pay for it.
>>
>>55582534

I am so very sorry.
>>
>>55582782
It's not done yet. Still needs movement rules, movement, and a user input loop.

Movement rules are going to be the only annoying part.

I'm going to bed so I'm not finishing it tonight, but here's what I've got so far

http://pastebin.com/tp4NA3ds

If you run the script, it will only display the starting board and exit, but it is internally representing the position of everything. All you'd have to do to move a piece is move its object to a different element of the board and call draw(board) again
>>
File: 1461220728994.gif (211 KB, 480x320) Image search: [Google]
1461220728994.gif
211 KB, 480x320
>>55580838
>>
>>55583083
Here's the code with some comments so people don't have to try to figure out what the ansi escape codes do

http://pastebin.com/EsHNDrGB
>>
>>55580838
>>55583083
>>55583171

Amazing how much difference it makes knowing your shit.
>>
>>55583227

to be fair, it's just a huge case of "When all you have is a hammer...".

from what i skimmed its all basic functionality layered into itself to create the more complex stuff.
>>
>>55583083
what does a.split do?
>>
Not Op, here is my js chess http://pastebin.com/zWLY7REP
>>
>>55582534
editor?
>>
>>55580838
is this obfuscated
Thread replies: 62
Thread images: 14

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.