what is PGN and FEN ?

Sort:
rocky0chess

please guide:

1) what is PGN ?

2) how can we use PGN ?

3) Also, when we download and save PGN  file, and if we try to open PGN  file, it does not opens.

4) how can we copy and paste, PGN file, in FORUMS,  or for disccussions or analysis, when it does not opens!!

5) what is FEN? How can FEN be used by us.

6) difference between PGN and FEN ?

ArtificalHuman

1) It is a type of file in which you have one or more chess games notation. It is an easy way to save games you have played.

2) You can just open it with notepad or with a chess software to see the notation of the game.

3) You have to open it with notepad or another chess software like arena or fritz.

4) Yes,in order to add a game, you just have to click on the chessboard  which is on top of where you type comments.

5) FEN is a position notation.

6)PGN is a file and FEN is a notation

rocky0chess

1) i tried to open PGN with notepad. it opens.

2) but , are there any other way to open PGN, where we can view the chess board, and see the moves also , as we do in chess.com, for the purpose of game analysis

rooperi

A pgn file holds the complete game information. Names of players, ratings, date, event, etc, plus all moves, variations and comments.

one pgn file may contain one game, or many (millions) games

a fen file holds the information for a specific position, position of the pieces, whose move it is, castling rights etc.

You can post your game here in the forums using a pgn. check out here, it explains how: How to post a game using a PGN file [A step by step guide for Chess.com dummies] - Chess.com

To analise our games, you need an interface, the best free one IMO is SCID, you can google and download it.

rocky0chess

thanks to all the viewers of my post for PGN  and FEN  related problem.

 

i am very much thankfull to Rooperi, for giving step by step guide for posting the chess games in the forums of chess.com. And it works perfectly.

Also , please guide, which are the BEST & RELIABLE FREE DOWNLOAD, TO where we can view chess game from PGN ?

 

and please explain, how can we use FEN ?

 

once again i thanks to all my viewers and your help.

rooperi

http://www.chess.com/download/view/scid-422

You can get Scid here.

I just made a topic:

http://www.chess.com/download/view/scid-422

In the 1st post, I used a FEN, static position. It is what it is, you can't move pieces around, it just represents a single position in a game.

A few post later, There is a PGN. Can ou see the difference?

TTecheTTe

This was very helpful to me, also. Thank you all!

Martti85

so if I got some game save as a nopad and no PGN because I play here chess.com using my workplace comp. So if I download PGN my personal comp can I use those nopad if I send those my email ? and here is exsample

1.e4 e5 2.Nf3 Nc6 3.Bb5 ofcourse I got hole games like this witch end up checkmate 

SnakePP

This is a FEN : 1R6/k1nK4/1p6/1P6/8/8/8/ w - - 0 1

If you copy and paste it into the load FEN in analysis, the position will be like this:

Do you know the next move? It is white to play.

SnakePP

Forsyth–Edwards Notation (FEN) is a standard notation for describing a particular board position of a chess game. The purpose of FEN is to provide all the necessary information to restart a game from a particular position.

FEN is based on a system developed by Scottish newspaper journalist David Forsyth. Forsyth's system became popular in the 19th century; Steven J. Edwards extended it to support use by computers. FEN is defined[2] in the "Portable Game Notation Specification and Implementation Guide".[1] In the Portable Game Notation for chess games, FEN is used to define initial positions other than the standard one.[3] FEN does not provide sufficient information to decide whether a draw by threefold repetition may be legally claimed or a draw offer may be accepted; for that, a different format such as Extended Position Description is needed.

Definition[edit]

A FEN "record" defines a particular game position, all in one text line and using only the ASCII character set. A text file with only FEN data records should have the file extension ".fen".[4]

A FEN record contains six fields. The separator between fields is a space. The fields are:[5]

  1. Piece placement (from White's perspective). Each rank is described, starting with rank 8 and ending with rank 1; within each rank, the contents of each square are described from file "a" through file "h". Following the Standard Algebraic Notation (SAN), each piece is identified by a single letter taken from the standard English names (pawn = "P", knight = "N", bishop = "B", rook = "R", queen = "Q" and king = "K"). White pieces are designated using upper-case letters ("PNBRQK") while black pieces use lowercase ("pnbrqk"). Empty squares are noted using digits 1 through 8 (the number of empty squares), and "/" separates ranks.
  2. Active color. "w" means White moves next, "b" means Black moves next.
  3. Castling availability. If neither side can castle, this is "-". Otherwise, this has one or more letters: "K" (White can castle kingside), "Q" (White can castle queenside), "k" (Black can castle kingside), and/or "q" (Black can castle queenside). A move that temporarily prevents castling does not negate this notation.
  4. En passant target square in algebraic notation. If there's no en passant target square, this is "-". If a pawn has just made a two-square move, this is the position "behind" the pawn. This is recorded regardless of whether there is a pawn in position to make an en passant capture.[6]
  5. Halfmove clock: The number of halfmoves since the last capture or pawn advance, used for the fifty-move rule.[7]
  6. Fullmove number: The number of the full move. It starts at 1, and is incremented after Black's move.

Examples[edit]

The following example is from the FEN specification:[8]

Here's the FEN for the starting position:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

And after the move 1.e4:

rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1

And then after 1...c5:

rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR w KQkq c6 0 2

And then after 2.Nf3:

rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2


SnakePP

A PGN is something like this:

[Event "Live Chess"]
[Site "Chess.com"]
[Date "2021.06.09"]
[Round "-"]
[White "SnakePP"]
[Black "imdummyalso"]
[Result "1-0"]
[Tournament "https://www.chess.com/tournament/live/ccyc-wednsday-selective-competition-2385122"]
[CurrentPosition "k7/1QK5/8/8/P7/8/8/8 b - -"]
[Timezone "UTC"]
[ECO "C30"]
[ECOUrl "https://www.chess.com/openings/Kings-Gambit"]
[UTCDate "2021.06.09"]
[UTCTime "23:54:10"]
[WhiteElo "710"]
[BlackElo "805"]
[TimeControl "600+2"]
[Termination "SnakePP won by checkmate"]
[StartTime "23:54:10"]
[EndDate "2021.06.10"]
[EndTime "00:06:18"]
[Link "https://www.chess.com/game/live/17021601953"]

1. e4 e5 2. f4 d6 3. Nf3 Bg4 4. g3 d5 5. fxe5 dxe4 6. h3 Bxf3 7. Be2 Bb4 8. Rf1
h5 9. c3 Bc5 10. d4 Bb6 11. c4 h4 12. gxh4 Qxh4+ 13. Rf2 Bxd4 14. Qxd4 Nc6 15.
Qd1 Nxe5 16. c5 Nd3+ 17. Bxd3 Bxd1 18. Kxd1 Qxf2 19. Bxe4 Rxh3 20. Bxb7 Rh1+ 21.
Bxh1 Rd8+ 22. Bd2 Qxd2+ 23. Nxd2 Nf6 24. Bc6+ Ke7 25. Rc1 Ng4 26. Bf3 g5 27.
Bxg4 f6 28. Rc4 Kf7 29. Ra4 Kg6 30. Rxa7 Rd7 31. c6 Rd4 32. Be2 f5 33. Bf1 g4
34. Rxc7 Kg5 35. Rh7 f4 36. Rh1 g3 37. Ke1 Rd5 38. Nf3+ Kg4 39. Ng1 Ra5 40. a3
Re5+ 41. Be2+ f3 42. Nxf3 g2 43. Rg1 Kg3 44. Nxe5 Kh2 45. Rxg2+ Kxg2 46. Bf3+
Kg3 47. c7 Kf4 48. c8=Q Kxe5 49. Qe8+ Kd6 50. Qc6+ Ke7 51. Qc5+ Kd7 52. Qc6+ Ke7
53. Qe4+ Kd6 54. Qf4+ Ke6 55. Bd5+ Kxd5 56. b4 Kc6 57. b5+ Kxb5 58. a4+ Ka5 59.
Qe5+ Ka6 60. Qe2+ Ka7 61. Qb5 Ka8 62. Kd2 Ka7 63. Kc3 Ka8 64. Kc4 Ka7 65. Kc5
Ka8 66. Kc6 Ka7 67. Kc7 Ka8 68. Qb7# 1-0

It contains all moves. It also contain important informations such as the black player and the white player. It contains the player's rating, result, subject, Game URL, ECO, time control, and FEN if you are playing the variant "From Position"