← Home ← Back to /bant/

Thread 22954959

33 posts 18 images 6 unique posters /bant/
Anonymous (ID: jcEGmG2+) United States No.22954959 [Report] >>22954965 >>22954967 >>22954969 >>22954971 >>22954999 >>22955005 >>22955797
Wtf is a c++programmer? I don't know anything about programming.
Anonymous (ID: NBE7uh0M) United States No.22954965 [Report]
>>22954959 (OP)
my mom was like that & my dad got tired of dealing with her, so he sat in a room working while she did xanax and i had to keep her shit under control most of the time
Anonymous (ID: NBE7uh0M) United States No.22954967 [Report] >>22954972
>>22954959 (OP)
>Wtf is a c++programmer? I don't know anything about programming.
C++ is a programming language
you know about different programming languages?
Anonymous (ID: jcEGmG2+) United States No.22954969 [Report] >>22954973
>>22954959 (OP)
smash btw, but I would get a restraining order like 1 month later
Anonymous (ID: QQGpEwS0) United States No.22954971 [Report] >>22954982
>>22954959 (OP)
1pbtid
Anonymous (ID: jcEGmG2+) United States No.22954972 [Report] >>22954976
>>22954967
>you know about different programming languages?
no
Anonymous (ID: NBE7uh0M) United States No.22954973 [Report]
>>22954969
good
just don't stay with her and for the love of god don';t have a kid with her
Anonymous (ID: NBE7uh0M) United States No.22954976 [Report]
>>22954972
ah shit :/
Anonymous (ID: NBE7uh0M) United States No.22954981 [Report] >>22954999
a program can't be run by a computer unless it's written in ones and zeroes, but that would be extremely tedious to write programs in, so there's all sorts of different programming languages which basically serve as a layer of abstraction
any program has to be translated from the programming language to ones and zeroes for it to run
Anonymous (ID: jcEGmG2+) United States No.22954982 [Report] >>22954983
>>22954971
oh hey that's me
Anonymous (ID: QQGpEwS0) United States No.22954983 [Report] >>22954999
>>22954982
All of them?
Anonymous (ID: NBE7uh0M) United States No.22954985 [Report]
but yeah, that's why there's a whole bunch of fucky programming languages, even though they do more or less the same thing
it's like, you could control your car with a steering wheel or an xbox controller or whatever
they're all different and have limitations, but they're all ways of controlling the same car hardware
Anonymous (ID: QQGpEwS0) United States No.22954986 [Report] >>22954991 >>22954992
I've been trying to generate a simple playable chess game with code but all I can find is stupid cheating engines.
Anonymous (ID: NBE7uh0M) United States No.22954991 [Report] >>22955023
>>22954986
I BROUGHT THAT IMAGE TO 4CHAN
I GAVE YOU THAT GIF
I BRING ALL THESE IMAGES
EVERYONE HATES ME BUT THEY STEAL MY SHIT EVERYONRWHER I GO
Anonymous (ID: NBE7uh0M) United States No.22954992 [Report] >>22955023
>>22954986
>I've been trying to generate a simple playable chess game with code but all I can find is stupid cheating engines.
wanna blog about it?
i'd be interested
Anonymous (ID: jcEGmG2+) United States No.22954999 [Report] >>22955005
>>22954983
no just the pink ID
>>22954981
Ok so why is the c++ language considered unhinged like the girl in pic>>22954959 (OP)
Anonymous (ID: NBE7uh0M) United States No.22955005 [Report]
>>22954999
>Ok so why is the c++ language considered unhinged like the girl in pic>>22954959 (OP) (OP)
hmmm
i'm guessing because it requires alot of special attention and it can be harder to debug than more modern languages
maybe

people have all sorts of strong opinions and philosophies about this shit, so it's hard to know what they were thinking when they made the comparison
Anonymous (ID: QQGpEwS0) United States No.22955023 [Report] >>22955038 >>22955041 >>22955043
>>22954991
Thanks anon!

>>22954992
I'm sure if I knew what I was doing or sombody was paying me I could write a good blog and make it work. I don't know much about c languages. I was trying to find open source code from forums like you used to be able to find. I dont want to just steal it from an already existing engine but program it only through comprehension of the commands that enable at the least real games between two people. Searching a string of combinations of terms trying to find an example programing for cmd or modern language equivalent yielded nothing from ai search except for "engines" that are designed to help humans know what move to play next in chess. I'm interested in making my own program to play chess that doesn't do anything extra other than eliminating possible moves as a two player game progresses, so more or less just normal play and possibly if I can accomplish that learn how to program in automatic history saving to build a database. Where would I even start? I guess here seems like a good place.
Anonymous (ID: NBE7uh0M) United States No.22955038 [Report] >>22955057
>>22955023
>I was trying to find open source code from forums like you used to be able to find.
ah yeah
i hate what happened to search engines
>Where would I even start? I guess here seems like a good place.
all the stuff you want to do is fairly ambitious, but that's good, and it's completely feasible
you might want to write down your plan and these features, that way you won't forget them when you're bogged down in the details

i would suggest you start with python instead of C or C++ if you have no experience
if you wanna do C or C++ that's fine though

https://pythonprogramming.net/introduction-learn-python-3-tutorials/
this guy is great if you do decide on python
even if you don't, i think the idea of starting with a tic tac toe game would be good for whatever language you choose, and it would be a good stepping stone project to something bigger like a chess game & chess engine

i find it best to start with a video tutorial & then dig through forum posts and documentation as needed, but that might not work for more obscure ideas you want to do
Anonymous (ID: NBE7uh0M) United States No.22955041 [Report]
>>22955023
>I'm interested in making my own program to play chess that doesn't do anything extra other than eliminating possible moves as a two player game progresses
i like how you worded this as well
that's an algorithmic way of looking at it
Anonymous (ID: NBE7uh0M) United States No.22955043 [Report] >>22955057
>>22955023
>Where would I even start?
break things down into smaller and smaller steps and it'll become more and more obvious how to express it as an algorithm
from there, you just have to express your algorithm in whatever programming language you chose & make sure it works

you can look for libraries in your language to make things easier
you'll probably want some sort of library to easily create a window and visualize the chess game, for example
it would take a lot of effort to make that from scratch, but a library for it almost certainly exists, or atleast one you could use for that purpose
Anonymous (ID: QQGpEwS0) United States No.22955057 [Report] >>22955066
>>22955038>>22955043
Yeah...Thanks for the ideas, I guess each players options would start with 20 possible moves to 18 possible locations on 16 squares. In c, is this expression based at all upon visual aspects such as color or position, or is it just a function of denoted possibilities?
Anonymous (ID: NBE7uh0M) United States No.22955066 [Report]
>>22955057
>In c, is this expression based at all upon visual aspects such as color or position, or is it just a function of denoted possibilities?
well, the way i see it, you should have some sort of board set up as an object.
>20 possible moves to 18 possible locations on 16 squares
a move can be chosen from this set of moves, which will alter/manipulate the board object
after that, the visual representation of the board will update based on that board object
after that, the other player chooses a move

that would be one way of doing it.
but the visuals shouldn't have anything to do with the mechanics of the game, or the set of possible moves, or hte way the player chooses them.

for the purposes of the program, the visuals are just a way to represent/show what's happening in the game.
the game itself is just your program.

also,
>20 possible moves to 18 possible locations on 16 squares.
you gotta keep track of this set of possible moves for player 1 and player 2, keep that in mind
Anonymous (ID: liz5+Rpr) United Kingdom No.22955068 [Report] >>22955074
have you looked at the chess programming wiki?
that's probably a good place to start
Anonymous (ID: NBE7uh0M) United States No.22955072 [Report] >>22955760
your program shouldn't calculate EVERY possible move at the beginning of a turn
that would make your program slow
instead, it should wait for the player to try and make a move, then decide whether that one move is possible or impossible

this is much easier if you have some sort of board object with all the pieces in their positions

but again, this board object is separate from the visual representation
it's just an object containing organized data
Anonymous (ID: NBE7uh0M) United States No.22955074 [Report]
>>22955068
that looks good
Anonymous (ID: QQGpEwS0) United States No.22955760 [Report] >>22955764 >>22955781
>>22955072
So ai was right and all I can do is T/F engine confirmation?
Anonymous (ID: NBE7uh0M) United States No.22955764 [Report]
>>22955760
idk what the AI said

when most people say "engine" they mean a cheat engine, where you feed it a board & it DECIDES the best possible move for you
that's not what i'm talking about
i'm saying, if player 1 decides to move their pawn up 2 squares, they'll try to make that move, and your program will allow them to do that.
if player 1 tried to move their pawn up 4 pieces, it would decide that's illegal.

a chess engine picks the best possible move in a given situation
your chess game just decides whether a move is legal or not, same as any online chess game
Anonymous (ID: NBE7uh0M) United States No.22955777 [Report]
i hope that makes sense
Anonymous (ID: NBE7uh0M) United States No.22955781 [Report]
>>22955760
you can always experiment & find other ways of doing things
it's fun to do that with programming, since you don't have to worry about whether your idea truly makes sense, you can write & run it to make SURE it does or doesn't
Anonymous (ID: VSLYy7uH) United States No.22955782 [Report] >>22955784
9p.io
greenarrays.com
swi prolog
happstack.com
picolisp.com
aidaweb.si
lisp issr
lisp clobber
J language
occam-pi rmox
freebsd.org and icewm
gnu clog

these are fun stuff to replace big tek
flibe.com also important
Anonymous (ID: NBE7uh0M) United States No.22955784 [Report]
>>22955782
:o
interesting
Anonymous (ID: Ux5xH4XD) United Kingdom No.22955797 [Report]
>>22954959 (OP)
did you know that many programming languages and software projects have cute little mascots?
>https://www.youtube.com/watch?v=_THxtI7LHgE