1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

c++ replay implementation of my problem

Discussion in 'C++' started by learner guy, Dec 19, 2011.

  1. learner guy

    learner guy New Member

    hello everyone,
    i am trying to implement save,load and replay in my chess game made in c++ console.
    i am done with save and load but stuck on replay.
    i want every turn to be stored in file and when player asks to replay it should show all turns in order they executed
    for this i want my read function to act in this way:
    -read first 64 characters(total number of components of chess arrary 8*8) and bring them to board array
    -then start from 64teh character to 128th character to show next state of game
    -then from 128th to next 64 characters and so on

    my problem is that is there any function in c++ that allows me to read from file from one point to other point (provided the points are defined by me )..

    ask any questions to clarify more..and plz help
     

Share This Page